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…
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)- A79% (27)
- B12% (4)
- D3% (1)
- E6% (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
Community Discussion
No community discussion yet for this question.