In public inheritance , the members of the base retain their access levels: The public members of the base are public members of the derived and the protected members of the base are protected in the derived.
In protected inheritance , the public and protected members of the base class are protected members in the derived clas
s.
In private inheritance , all the members of the base class are private in the derived class.
转载请注明原文地址: https://ibbs.8miu.com/read-2214019.html