Thanks Amar.
Then, why the OCP
Java SE 7 Programmer II Certification Guide in Q 3-3 states that for this code:
The statement "Sun HAS-A AbX" is incorrect because "
Class Sun defines a variable of type Sunny. So the correct relation would be Sun HAS-A Sunny. The IS-A and HAS-A relationships don’t reflect the names of the variables"?.
Then, is there an error in the answer?
Thanks.