C4Cat Honorary Master Joined Nov 9, 2015 Messages 14,305 Reaction score 6,633 Nov 8, 2018 #21 Doesn't matter either way if the value isn't changing. Declaring a variable for reuse makes for easier reading (and writing) of the code referencing it but it makes no difference otherwise imo
Doesn't matter either way if the value isn't changing. Declaring a variable for reuse makes for easier reading (and writing) of the code referencing it but it makes no difference otherwise imo
S Spacerat Expert Member Joined Jul 29, 2015 Messages 1,524 Reaction score 653 Nov 8, 2018 #22 OP did not mention anything re class B deriving from class A. Rubbish question