- 2

C++, two class

If class D derives from class B, we say that B is: -a sub-object of D - a subtype of D - a subclass of D

13th Oct 2020, 12:56 PM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar
1 ответ
+ 2
None of the choices were true. Except if B extends D, then we can say that B is a subclass of D. But then again, you said "If class D derives from class B" which implies that D extends B.
13th Oct 2020, 1:14 PM
Ipang