Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Types of Inheritance

  1. #1
    Contributing Member
    Join Date
    Jul 2006
    Answers
    74

    Exclamation Types of Inheritance

    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.


  2. #2
    Contributing Member
    Join Date
    Jul 2006
    Answers
    93

    Re: Types of Inheritance

    There are two types of Inheritance. They are namely:
    Single Inheritance
    Multiple Inheritance
    Single Inheritance:
    This is one in which derived class has only one direct base class.
    Multiple Inheritance:
    This is one in which derived class has more than one direct base class.


  3. #3
    Expert Member
    Join Date
    Oct 2005
    Answers
    383

    Re: Types of Inheritance

    hi

    types of inheritance


    single level inheritance eg ( class B extends Class A)

    Multilevel inheritance eg( class C extends class B and class B extends class A)
    multiple inheritance Class C inherits Class A features as well as Class B featues.This type of inheritance is not allowed in JAVA.

    hop this helps u to some extent

    bye

    :)
    NEVER SAY DIE.

  4. #4
    Contributing Member
    Join Date
    Dec 2006
    Answers
    77

    Re: Types of Inheritance

    there are many tpes of inheritence:

    single inheritence-one super and one sub class
    multiple-many super and one sub class
    multi level-the sub class of one level forms the super class of another level
    hierarchical- one super and many sub classes
    hybrid-multiple and multi level combined.

    [B][B][I][COLOR="Blue"][FONT="Times New Roman"]Regards,
    Raju[/FONT][/COLOR][/I][/B][/B]

  5. #5
    Contributing Member
    Join Date
    Jul 2006
    Answers
    74

    Re: Types of Inheritance

    Thank you friends for your answers.I could get a detailed idea on types of inheritance available.


  6. #6
    Junior Member
    Join Date
    Aug 2007
    Answers
    1

    Re: Types of Inheritance

    Quote Originally Posted by scott View Post
    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.
    there 5 types of inheritence
    1.singleton inheritence
    2.multilevel inheritence
    3.hirarchical inheritence
    4.hybrid inheritence
    5.multiple inheritence


  7. #7
    Junior Member
    Join Date
    Jun 2008
    Answers
    1

    Re: Types of Inheritance

    In C++ inheritance can be private or public.
    Private inheritance [class A {...}; class B : private A {...};] means that sub-class will inherit only public methods of base class.
    Public inheritance [class A {...}; class B : public A {...};] means that sub-class's methods can access protected fields of base class.


  8. #8
    Expert Member
    Join Date
    Dec 2007
    Answers
    138

    Re: Types of Inheritance

    There are two types of inheritance used in modern programming languages. C# and other .NET languages use single inheritance. This means that a subclass may only inherit functionality from a single base class.

    Multiple inheritance permits a subclass to have two or more superclasses. In this situation the derived class inherits functionality from several base classes. Multiple inheritance is not supported by C# or the .NET framework. However, this does not stop a class from providing many public interfaces as will be seen in a later article.

    PLease let me know if i am wrong or missing something


  9. #9
    Junior Member
    Join Date
    Apr 2008
    Answers
    1

    Smile Re: Types of Inheritance

    Quote Originally Posted by scott View Post
    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.
    Basically there are two types of inheritances are there.
    they are:
    single and multiple..
    But, actually we had 5 types of inheritances are there.
    they are:
    single inheritance.
    multiple inheritance.
    multi-level inheritance.
    hybrid inheritance and
    multi path inheritance.


  10. #10
    Junior Member
    Join Date
    Jun 2008
    Answers
    3

    Exclamation Re: Types of Inheritance

    inheritance is of 5 types
    1.single inheritance:
    only one baseclass,and one derived class access memberfunctions,datamembers from it. and derived class can't behave again base class.
    2.multilevel inheritance:
    eg: base class
    l
    derived1 class
    l
    derived2 class
    l
    derived3 class
    .
    .
    again derived class acts as another base class
    3.multiple inheritance:
    there are two base classes and one derived class which is derived from both two base classes.
    base1 class base2class
    derived class
    4.hirarchical inheritance:
    in this one common base class and derived class and from those another derived classes.
    5.hybrid inheritance:
    it is a combination of any above inheritance types.
    that is either multiple-multilevel
    multiple-hirarchical
    any other combination


  11. #11
    Junior Member
    Join Date
    Jun 2008
    Answers
    6

    Re: Types of Inheritance

    Quote Originally Posted by scott View Post
    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.
    Inheritance are 3 types
    1. Multilevel Inheritance
    2. Multiple Inheritance
    3. cyclic Inheritance

    note : - cyclic Inheritance is never used and no programming language support it.


  12. #12
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Re: Types of Inheritance

    multilevel inheritance


  13. #13

    Re: Types of Inheritance

    There are 6 types of inheritance viz,
    1.Single level inheritance
    2.Multiple level inheritance
    3.Multilevel inheritance
    4.Hybrid inheritance
    5.Heirarchial inheritance
    6.Multipath inheritance


  14. #14
    Junior Member
    Join Date
    Sep 2008
    Answers
    3

    Thumbs up Re: Types of Inheritance

    There are exect five types of Inhertience .

    1). Single level Inhertience.
    2). multilevel Inhertience.
    3). hybrid Inhertience.
    4).hierarchical Inhertience.
    5).multipal Inhertience.

    But multilevel or multipal can be consider the same.


  15. #15
    Contributing Member
    Join Date
    Oct 2008
    Answers
    72

    Re: Types of Inheritance

    Types of inheritance are 1.single inheritance 2.multiple inheritance 3.multipath inheritance 4.multi level inheritance 5.virtual path inheritance 6.hierarchical inheritance 7.hybrid inheritance


  16. #16
    Junior Member
    Join Date
    Oct 2008
    Answers
    1

    Re: Types of Inheritance

    Quote Originally Posted by scott View Post
    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.
    they are single,multiple,hybrid and multilevel types
    we can easily get what they mean through it


  17. #17
    Junior Member
    Join Date
    Feb 2009
    Answers
    1

    Re: Types of Inheritance

    Quote Originally Posted by scott View Post
    I know basic concepts of Inheritance. But I want to know is there any types of inheritance? If so how many types are available and what are they. Can someone brief me on this.
    ... plz roly as soon as possible


  18. #18

    Re: Types of Inheritance

    Thier are 4 type of inheritence ----
    1.single level
    2.multilevel
    3.multiple (in java knn as Interface)
    4.Heirarchical
    5.Hybrid


  19. #19
    Junior Member
    Join Date
    Sep 2008
    Answers
    2

    Re: Types of Inheritance

    C++ has the following inheritanceses single inheritance multiple inheritance multilevel inheritance hybrid inheritacnce,heirarchical inheritace in java has the following inheritances single ,multilevel ,hybrid, java does not support multiple inheritance, but overcomming the above problem using interface


  20. #20
    Junior Member
    Join Date
    Mar 2009
    Answers
    10

    Re: Types of Inheritance

    Two types
    (1) implementation
    (2) interface

    Differences in multiplicity and protection level have already been mentioned.


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact