nerdexam
Oracle

1Z0-804 · Question #21

Given: Which three statements concerning the OO concepts "is-a" and "has-a" are true?

The correct answer is A. Flimmer is-a Plinkable B. Flommer has-a Tagget E. Flommer is-a Plinkable. 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…

Object-Oriented Design Principles

Question

Given:

Which three statements concerning the OO concepts "is-a" and "has-a" are true?

Exhibit

1Z0-804 question #21 exhibit

Options

  • AFlimmer is-a Plinkable
  • BFlommer has-a Tagget
  • CFlommer is-a Glommer
  • DTagget has-a String
  • EFlommer is-a Plinkable
  • FFlimmer is-a Flommer
  • GTagget is-a Plinkable

How the community answered

(20 responses)
  • A
    80% (16)
  • D
    5% (1)
  • F
    10% (2)
  • G
    5% (1)

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 eachmember field or method).

Topics

#is-a relationship#has-a relationship#interfaces#inheritance hierarchy

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice