Home » Oracle » 1z0-804 » Which three statements concerning the OO concepts “is-a” and “has-a” are true?
Given:
Which three statements concerning the OO concepts "is-a" and "has-a" are true?
A. Flimmer is-a Plinkable
B. Flommer has-a Tagget
C. Flommer is-a Glommer
D. Tagget has-a String
E. Flommer is-a Plinkable
F. Flimmer is-a Flommer
G. Tagget is-a Plinkable
Correct Answer: ABE
Explanation/Reference:
Explanation:
A: Flimmer implements Plinkable.
Flimmer is-a plinkable.
D:The relationship modeled by composition is often referred to as the "has-a" relationship. HereTaggethasaString.
F: Flommer extends Flimmer
So there is an "is-a relationship between Flommer and Flimmer .
Note: Thehas-a relationship has anencapsulation feature (like private or protected modifier used before each member field or method).
Download Printable PDF. VALID exam to help you PASS.
|
|