1 / 6

LECTURE-24

LECTURE-24. Modes of Inheritance (Public , Private, Protected Inheritance). Modes Of Inheritance. Access specifiers of derivation The public access specifier The protected access specifier The private access specifier. Public Access Specifier Defines that all the:

bson
Télécharger la présentation

LECTURE-24

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LECTURE-24 Modes of Inheritance (Public , Private, Protected Inheritance)

  2. Modes Of Inheritance • Access specifiers of derivation • The public access specifier • The protected access specifier • The private access specifier

  3. Public Access Specifier Defines that all the: private members of a base class remain private in the object protected members remain protected the public members remain public

  4. Protected Access Specifier Defines that all the: the private members of a base class remain private in the object the protected members remain protected but all the public members of the base class become protected

  5. Private Specifier Defines that all the: private members of a base class remain private in the object public and protected members in the base class become private

  6. Access Rights of Derived Classes Type of Inheritance • The type of inheritance defines the access level for the members of derived classthat are inherited from the base class Access Control for Members

More Related