nerdexam
Oracle

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…

Object-Oriented Design Principles

Question

Given:

Which two statements concerning the OO concepts "IS-A" and "HAS-A" are true?

Exhibit

1Z0-804 question #28 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)
  • A
    2% (1)
  • B
    79% (34)
  • C
    5% (2)
  • D
    5% (2)
  • E
    9% (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

#IS-A relationship#HAS-A relationship#inheritance#composition

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice