G
Gael
Hi,
I have an abstract class A, and two subclasses B and C.
Those classes have a static field F declared in abstract A class.
If I got it correctly, F is unique, and therefore has the same value
in the 3 classes A, B and C. Is that correct?
Then, is there a way to have a F field that could have different
values in A, B and C classes, but still a unique value for all
instances of A class, a second unique value for all instances of B
class, and a third unique value for all instances of C class?
What's the best practise here?
Thanx for advising...
Gaël
I have an abstract class A, and two subclasses B and C.
Those classes have a static field F declared in abstract A class.
If I got it correctly, F is unique, and therefore has the same value
in the 3 classes A, B and C. Is that correct?
Then, is there a way to have a F field that could have different
values in A, B and C classes, but still a unique value for all
instances of A class, a second unique value for all instances of B
class, and a third unique value for all instances of C class?
What's the best practise here?
Thanx for advising...
Gaël