posted 17 years ago
Hello EveryOne,
Chapter 2, Question 1, page : 158.
The Question is that "Which of the following are true ?"(Questions is about has-a relationship) and the answer given is
B. Has-a relationship always rely on instance variables.
I think we can also use static variables for has-a relationship.
(Actually, in Kathy's bonus examination,there was one question about has-a relationship and one of the options of that question was "has-a relation always rely on instance variables". But in examination's answer book she has given explanation that "you can also use static variables in has-relationship")
So there is contradiction between these two answer. If anyone has more information on this please,inform me. I have also seen Errata given by Bert Bates, but this is not reported in that.
Thanks
[ June 21, 2007: Message edited by: Bharat Makwana ]
ॐ सर्वे जना: सुखिनो भवन्तु , तथास्तु |
'May the whole world be happy, so be it'
SCJP1.5, SCWCD1.5