A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
simple has-a question
Joined: Sep 30, 2010
Oct 10, 2010 04:45:27
in the master-exam-B of K&S book
"Has-A relationships are always defined with instance variables"
statement is given as false because static instances can also define has-a relationships.
in the master-exam-C of K&S book
"Has-A relationships always rely on instance variables"
statement is given true
aren't both the statements the SAME?
I agree. Here's the link:
subject: simple has-a question
Jar file statement (true or false)
has-a and static variables
Confused with a particular sentence in Kathry's and Bert's Book
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014