Hi guys ! I'm really confused with this Q. Do you have idea? Thanks. Igor. Where will be a is a relationship will occur select one? A. interface Person class Employee implements Person B. interface Shape interface Rectangle extends Shape
C. interface Component class Objects implements Component {Component [] Component;}
Hi Igor Actually all of them have a "is a" relationship. But it appears that they want answer B to be the correct one because it extends a class while others implements an interface.
Answer choice B is correct. "is a " relationship exists when a subclass extends the behaviour of a Super class or if an interface extends another interface. interface Rectangle extends Shape - reflects "is a " type of relationship. "like a " relationship exists when a class implements an interface. Hence, answer choices A and C reflect "like a" type of relationship.
Suresh Selvaraj, (author of JQuiz)<br />SCJP2<br /><a href="http://www.decontconsulting.com" target="_blank" rel="nofollow">www.decontconsulting.com</a>