Advance Java coaching, angular JS, Basic computer course, C Language, C programming language, computer coaching in Ahmedabad, Education, Engineering Courses, Java, Java Language in Bopal and Satellite, PHP coaching, programming language, Python, TCCI computer coaching

What are the modes of Inheritance? tccicomputercoaching.com

Inheritance is capability of a class to derive properties and characteristics from another class.

modes-inheritance-simple

Modes of Inheritance

  1. Public mode: If we derive a sub class from a public base class. Then the public member of the base class will become public in the derived class and protected members of the base class will become protected in derived class. Private members of the base class will never get inherited in sub class.
  2. Protected mode: If we derive a sub class from a Protected base class. Then both public member and protected members of the base class will become protected in derived class. Private members of the base class will never get inherited in sub class.
  3. Private mode: If we derive a sub class from a Private base class. Then both public member and protected members of the base class will become Private in derived class. Private members of the base class will never get inherited in sub class.

TCCI is located in Bopal and Satellite in Ahmedabad.

To learn more about Inheritance , C++ , Programming .

Join TCCI @ Bopal and Satellite in Ahmedabad.

Call us @ 98256 18292.

Visit us @ http://tccicomputercoaching.com/

 

Advance Java coaching, angular JS, Basic computer course, C programming language, c++ language, Education, Engineering Courses, Java, Java Language in Bopal and Satellite, online computer coaching, PHP coaching, programming language, Python, TCCI computer coaching

What are the types of Inheritance? tccicomputercoaching.com

Types of Inheritance in C++

A class can inherit properties from one or more classes and from one or more levels.

types-inheritance-simple

On the basis of this concept, there are five types of inheritance.

Single Inheritance

In single inheritance, a class is derived from only one base class.

Multiple Inheritance

In this inheritance, a class is derived from more than one base class.

Hierarchical Inheritance

In this type, two or more classes inherit the properties of one base class.

Multilevel Inheritance

The mechanism of deriving a class from another derived class is known as multilevel inheritance. The process can be extended to an arbitrary number of levels.

Hybrid Inheritance

This type of inheritance includes more than one type of inheritance

To learn more about Inheritance  , C++ , Programming .

Join TCCI @ Bopal and Satellite in Ahmedabad.

Call us @ 98256 18292.

Visit us @ http://tccicomputercoaching.com/