Posted by William McQuain Jr. on November 14, 2001 at 23:18:16:
In Reply to: controlled inheritance test question posted by shannon on November 14, 2001 at 22:19:30:
This is waht you get
if you are using public inheritance.
Public members of B become Public member of D
protected members of B become protected member of D
if you are using protected inheritance
public and protected members of B becomes protected.
pivate members are not accessible on bothe ways.
if you are using private inheritance
public and protected members of B become private.
for more info. Ch 9 pp 619 on Deitel & Deitel book
key B for base class.
D for Drived class.
Post a Followup