Composition means ______________.
A. that data fields should be declared private.
B. that a class extends another class.
C. that a variable of supertype refers to a subtype object.
D. that a class contains a data field that references another object.
The correct answer is D
A. that data fields should be declared private.
B. that a class extends another class.
C. that a variable of supertype refers to a subtype object.
D. that a class contains a data field that references another object.
The correct answer is D