1Z0-804 · Question #28
Given: Which two statements concerning the OO concepts "IS-A" and "HAS-A" are true?
The correct answer is B. Flommer has-a String. F. Tagget is-a Glommer. B: The relationship modeled by composition is often referred to as the "has-a" relationship. Here Flommer hasaString. E: The has-a relationship has an encapsulation feature (like private or protected modifier used before eachmember field or method). Here Tagget has-a method…
Question
Given:
Which two statements concerning the OO concepts "IS-A" and "HAS-A" are true?
Exhibit
Options
- AFlimmer is-a Glommer.
- BFlommer has-a String.
- CTagget has-a Glommer.
- DFlimmer is-a ArrayList.
- ETagget has-a doStuff()
- FTagget is-a Glommer.
How the community answered
(43 responses)- A2% (1)
- B79% (34)
- C5% (2)
- D5% (2)
- E9% (4)
Explanation
B: The relationship modeled by composition is often referred to as the "has-a" relationship. Here Flommer hasaString. E: The has-a relationship has an encapsulation feature (like private or protected modifier used before eachmember field or method). Here Tagget has-a method doStuff() F: Tagget implements Glommer. Tagget is-a Glommer. Note: The has-a relationship has an encapsulation feature (like private or protected modifier used before eachmember field or method).
Topics
Community Discussion
No community discussion yet for this question.
