+ 1
- Public: When deriving a class from aĀ publicĀ base class,Ā publicĀ members of the base class becomeĀ publicĀ members of the derived class andĀ protectedĀ members of the base class becomeĀ protectedĀ members of the derived class. A base class'sĀ privateĀ members are never accessible directly from a derived class, but can be accessed through calls to theĀ publicĀ andĀ protectedĀ members of the base class. - Protected: When deriving from aĀ protectedĀ base class,Ā publicĀ andĀ protectedĀ members of the base class becomeĀ protectedĀ members of the derived class. - Private: When deriving from aĀ privateĀ base class,Ā publicĀ andĀ protectedĀ members of the base class becomeĀ privateĀ members of the derived class.
10th Jan 2017, 11:35 PM
Daniel Stanciu
Daniel Stanciu - avatar