Results 1 to 6 of 6

Thread: What are the different types of Inheritance in C++?

  1. #1
    Join Date
    Dec 2009
    Posts
    17

    What are the different types of Inheritance in C++?

    I am beginner(new) programmer in this vast programming world. I am learning the programming languages like C++, Java, DBMS, HTML and SQL. Right now, i am learning the C++ language and also practicing simple programs in it. Now, i want to proceed further and learn about the inheritance, i know what does inheritance, but wants to know what are different types of Inheritance? Please help me.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What are the different types of Inheritance in C++?

    Inheritance is the most basic and important concept in The Object Oriented Programming. And this concept is also used C++ programming language. Inheritance is a concept of linking two or more classes to each other in such a manner so that the properties and functions of their can be shared. In other words, one class will extend to another class. The different types of inheritance are as follows: Simple/Single Inheritance, Multilevel Inheritance, Hierarchical Inheritance, Multiple Inheritance and Hybrid Inheritance.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: What are the different types of Inheritance in C++?

    I am also new(beginner) to the programming world. Inheritance is very useful and important mechanism which is been used by every programmer in today's world. Till now what i have learn is that there are two types of inheritance and they are:
    1] Single Inheritance and
    2] Multiple Inheritance.
    Single Inheritance is the one, which will derive a class from only one base class. And multiple inheritance is the one, which will derive a class from more than one base class. Hope you will be able to understand the inheritance concept clearly.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What are the different types of Inheritance in C++?

    According to me, the Inheritance is the concept which will inherit the properties of one class to another class. And maybe this is also known as class structure again. The different types of Inheritance are as follows:
    1] Single class Inheritance: It will derive a class from only one base class.
    2] Multilevel Inheritance: It has number of levels of classes.
    3] Multiple Inheritances: It derive a class from more than one base class.
    4] Hierarchical Inheritance: Help us to create a baseless for number of classes and those numbers of classes can have further their branches of number of class.
    5] Hybrid Inheritance: It allows mixtures of number of inheritances.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: What are the different types of Inheritance in C++?

    I am also learning the C++ programming language. And right now i am learning the Inheritance chapter only in it. Firstly, inheritance is a mechanism which allows us to use properties and functions of each other classes. Till now i have learned three types of inheritance and are as follows:
    ->Single Inheritance: Only one base class and one derived class access member functions, data members from it. And derived class cannot behave again as base class.
    ->Multiple Inheritance: There are 2 base classes and one derived class which has been derived from both base classes.
    ->Hierarchical Inheritance: In this, one common base class and derived class are present and from those another classes are derived.

  6. #6
    Join Date
    Jan 2008
    Posts
    1,521

    Re: What are the different types of Inheritance in C++?

    My knowledge about the C++ programming language says that there Seven types of inheritance and they are as following:
    1)Single inheritance, 2)Multiple inheritance, 3)Multi-level inheritance, 4)Hybrid inheritance, 5)Multipath inheritance, 6)Hierarchical inheritance, and 7)Virtual Path inheritance. And out of this seven types, most commonly and simple to use is Multiple,Multilevel and Hierarchical Inheritance.

Similar Threads

  1. Replies: 3
    Last Post: 08-01-2011, 06:32 AM
  2. Disadvantages of Inheritance
    By Bottlenecked in forum Software Development
    Replies: 5
    Last Post: 10-02-2010, 08:18 AM
  3. What is an Inheritance in C#?
    By - Empty Shell - in forum Software Development
    Replies: 4
    Last Post: 09-02-2010, 07:03 AM
  4. Inheritance of Template in C#
    By KADEEM in forum Software Development
    Replies: 4
    Last Post: 07-12-2009, 10:18 PM
  5. Different types Types CCFL's
    By Zipp in forum Overclocking & Computer Modification
    Replies: 3
    Last Post: 29-10-2009, 09:11 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,040,974.01982 seconds with 16 queries