Inheritance in c++
Upcoming SlideShare
Loading in...5
×
 

Inheritance in c++

on

  • 7,579 views

www.cppforschool.com tutorial on inheritance in C++

www.cppforschool.com tutorial on inheritance in C++

Statistics

Views

Total Views
7,579
Views on SlideShare
7,498
Embed Views
81

Actions

Likes
4
Downloads
298
Comments
2

4 Embeds 81

http://www.ustudy.in 54
http://www.applicationsforall.com 15
http://www.androtech.neq3.com 8
http://applicationsforall.com 4

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • plz send me this ppt
    Are you sure you want to
    Your message goes here
    Processing…
  • plz send me this ppt
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Inheritance in c++ Inheritance in c++ Presentation Transcript

  • INHERITANCE IN C++
     
    FREE DOWNLOAD
    CBSE Question Papers, C++ Projects,
    C++ Practical Questions & Answers , C++ Tutorial
    http://www.cppforschool.com
     
  • INHERITANCE IN C++
    Inheritance :
    It is the capability of one class to inherit properties from another class.
    Base Class:
    It is the class whose properties are inherited by another class. It is also called Super Class.
    Derived Class:
    It is the class that inherit properties from base class(es).It is also called Sub Class.
  • FORMS OF INHERITANCE
    Single Inheritance:
    It is the inheritance hierarchy wherein one derived class inherits from one base class.
    Multiple Inheritance:
    It is the inheritance hierarchy wherein one derived class inherits from multiple base class(es)
    Hierarchical Inheritance:
    It is the inheritance hierarchy wherein multiple subclasses inherits from one base class.
    Multilevel Inheritance:
    It is the inheritance hierarchy wherein subclass acts as a base class for other classes.
    Hybrid Inheritance:
    The inheritance hierarchy that reflects any legal combination of other four types of inheritance.
  • FORMS OF INHERITANCE
  • Visibility Mode
    It is the keyword that controls the visibility and availability of inherited base class members in the derived class. It can be either private or protected or public.
    Private Inheritance:
    It is the inheritance facilitated by private visibility mode. In private inheritance, the protected and public members of base class become private members of the derived class.
    Public Inheritance:
    It is the inheritance facilitated by public visibility mode. In public inheritance, the protected  members of base class become protected members of the derived class and public members of the base class become public members of derived class.;
    Protected Inheritance:
    It is the inheritance facilitated by protected visibility mode. In protected inheritance , the protected and public members of base class become protected members of the derived class.
  • Execution of base class constructor
    When both derived and base class contains constructors, the base constructor is executed first and then the constructor in the derived class is executed.  In case of multiple inheritances, the base classes are constructed in the order in which they appear in the declaration of the derived class.
  •  
    FREE DOWNLOAD
    CBSE Question PapersC++ ProjectsC++ Practical Questions & AnswersC++ Tutorials
    http://www.cppforschool.com