nerdexam
Oracle

1Z0-804 · Question #118

The two methods of code reuse that aggregate the features located in multiple classes are ____________ ?

The correct answer is A. Inheritance C. Composition. A: Inheritance is a way of reusing code and building bigger more functional objects from a basic The original little object, the parent, is called the super-class. The more functional object that inherits from it iscalled the sub-class . C: When your goal is code reuse…

Object-Oriented Design Principles

Question

The two methods of code reuse that aggregate the features located in multiple classes are ____________ ?

Options

  • AInheritance
  • BCopy and Paste
  • CComposition
  • DRefactoring
  • EVirtual Method Invocation

How the community answered

(34 responses)
  • A
    79% (27)
  • B
    12% (4)
  • D
    3% (1)
  • E
    6% (2)

Explanation

A: Inheritance is a way of reusing code and building bigger more functional objects from a basic The original little object, the parent, is called the super-class. The more functional object that inherits from it iscalled the sub-class . C: When your goal is code reuse, composition provides an approach that yields easier-to- change

Topics

#composition#inheritance#code reuse#OOP

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice