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

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

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

A.
Inheritance

B.
Copy and Paste

C.
Composition

D.
Refactoring

E.
Virtual Method Invocation

Explanation:

A: Inheritance is a way of reusing code and building bigger more functional objects from a basic
object.
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
code.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Dean Kosmač

Dean Kosmač

A, C