Open Discussion Forum

Number of replies: 27

How many Types of Inheritance? Can we implement Multiple Inheritance in Java?

In reply to First post

Re: Open Discussion Forum

by Sadia Sultana Chowa ( 201-15-3052 ) -
We have 5 types of inheritance. they are :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid .
Multiple inheritance doesn't support in java. Because it increases the complexity of the program. So to make the java concept more simple and to reduce to complexity problem multiple inheritance is unsupported.
In reply to First post

Re: Open Discussion Forum

by Md. Jahidul Islam (201-15-3368) -
There are five types of inheritance. Those are Single, Multilevel, Hierarchical, Multiple, Hybrid .

No, we can't implement multiple inheritance in java. It doesn't support in java. The reason for this complication, it gains the complexity of the program. So, to make the concept of java more simple and to lose the complexity problem multiple inheritance is unsupported.
In reply to First post

Re: Open Discussion Forum

by Ieshita Nasrin Bithi (201-15-3216) -
There are 5 types of Inheritance. Like-
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid

We can't implement Multiple Inheritance in Java. Because, Multiple Inheritance doesn't support in Java because of 2 reasons.
1. In java, every class is a child of Object class. When it inherits from more than one super class, sub class gets the ambiguity to acquire the property of Object class.
2. In java, every class has a constructor, if we write it explicitly or not at all. The first statement is calling super() to invoke the supper class constructor. If the class has more than one super class, it gets confused.
In reply to First post

Re: Open Discussion Forum

by Md. Alif Sheakh -

There are five types of inheritance.

Based on the class, here are three types of inheritance - Single, Multilevel, Hierarchical.

The other two inheritances can only be done through the interface - Multiple, Hybrid.


Multiple inheritance isn't permitted in Java, and we cannot extend more than one other class. Still, if we try to do so, then a compile-time error is generated. But we can achieve multiple inheritance in Java using interfaces.

In reply to First post

Re: Open Discussion Forum

by Reajul Islam Nizhum -

There are 5 types of inheritance.

1) Single Inheritance

2) Multiple Inheritance

3) Multilevel Inheritance

4) Hierarchical Inheritance

5) Hybrid Inheritance

Multiple inheritance cannot be used using Java class. A framework may only extend one class, but multiple interfaces can be introduced. For instance, it is wrong to use multiple classes under inheritance because two classes cannot be extended or inherited.

In reply to First post

Re: Open Discussion Forum

by Fahim Shahriar (201-15-3629) -
There are 5 types of Inheritance.
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid
Multiple inheritance isn't supported in Java to prevent ambiguity. In Java, a class cannot extend more than one class, so when tried, it can show error.
In reply to First post

Re: Open Discussion Forum

by Mst.Fatematuz Zohura(201-15-3195) -
There are 5 types of inheritance.

1. Single Inheritance

2. Multiple Inheritance

3. Multilevel Inheritance

4. Hierarchical Inheritance

5. Hybrid Inheritance
Multiple inheritances aren't permitted in Java, and that we cannot extend quite one other class. Still, if we attempt to do so, then a compile-time error is generated. But we will achieve multiple inheritances in Java using interfaces.
In reply to First post

Re: Open Discussion Forum

by Dipa Mondal Tumpa (201-15-3214) -
There are 5 types of inheritance:
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid .

Java doesn’t support multiple inheritances in classes because it can lead to diamond problem and rather than providing some complex way to solve it
In reply to First post

Re: Open Discussion Forum

by Shazzad Shawon (201-15-3404) -
There are 5 types of Inheritance, There are ---
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid

Java doesn’t support multiple inheritances. Because of it increases the complex type in the program, so that we can't
In reply to First post

Re: Open Discussion Forum

by Tahmid chowdhury ID-(201-15-3064) -
We have 5 types of inheritance. they are :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid .
Multiple inheritance doesn't support in java. Because it increases the complexity of the program. So to make the java concept more simple and to reduce to complexity problem multiple inheritance is unsupported.
In reply to First post

Re: Open Discussion Forum

by SOHANUR RAHMAN SOHAG_201-15-3161 -
There are5 types of inheritance is given below :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid
No, Multiple inheritances doesn't support in java. Because it increases the complexity of the program. So to make the java concept more simple and to reduce to complexity problem multiple inheritances is unsupported. So we can,t implement Multiple Inheritance in Java.
In reply to First post

Re: Open Discussion Forum

by Abdullah Fahim(201-15-3201) -
We have 5 types of inheritance. they are :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid .
Multiple inheritance doesn't support in java. Because it increases the complexity of the program. So to make the java concept more simple and to reduce to complexity problem multiple inheritance is unsupported.
In reply to First post

Re: Open Discussion Forum

by Tanjil Alom (201-15-3079) -
There are 5 types of Inheritance.

1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid

Multiple inheritance isn't supported in Java to prevent ambiguity. In Java, a class cannot extend more than one class, so when tried, it can show error.
In reply to First post

Re: Open Discussion Forum

by B.M.Samiul Haque Real (201-15-3057) -
There are 5 types of Inheritance. Like-
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid

Multiple inheritance isn't permitted in Java, and we cannot extend more than one other class. Still, if we try to do so, then a compile-time error is generated. But we can achieve multiple inheritance in Java using interfaces.
In reply to First post

Re: Open Discussion Forum

by Tahmid chowdhury ID-(201-15-3064) -
There are 5 types of inheritance.

1) Single Inheritance

2) Multiple Inheritance

3) Multilevel Inheritance

4) Hierarchical Inheritance

5) Hybrid Inheritance

Multiple inheritance cannot be used using Java class. A framework may only extend one class, but multiple interfaces can be introduced. For instance, it is wrong to use multiple classes under inheritance because two classes cannot be extended or inherited.
In reply to First post

Re: Open Discussion Forum

by Utsha Roy (201-15-3094) -
5 types of inheritance we van implement Multiple Inheritance in Java:
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid.
In reply to First post

Re: Open Discussion Forum

by Risul Islam Jim (201-15-3675) -
We have 5 types of inheritance. they are :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid.
Multiple inheritances doesn't support in java. Because it increases the complexity of the program. So to avoid ambiguity and make the java program more simple ,multiple inheritance is unsupported in Java.
In reply to First post

Re: Open Discussion Forum

by Md. Nazmus Sakib (201-15-3419) -
There are five types of inheritance. They are:
1.Single,
2.Multilevel,
3.Hierarchical,
4.Multiple,
5.Hybrid.

No, we cannot implement multiple inheritance in java as it isn't permitted in Java. In Java we cannot extend more than one other class. Still, if we try to do so, then a compile-time error is generated. But we can achieve multiple inheritance in Java by using interfaces.
In reply to First post

Re: Open Discussion Forum

by MD.Abdulla-Hil-Kafi (201-15-3109) -
On the basis of class, there are three types of inheritance in Java.

1. Simple/Single level Inheritance
2. Multiple Inheritance
3. Hybrid Inheritance

And there are 2 types of Simple/Single level Inheritance.
1.Multilevel,
2.Hierarchical,

Java does not support "multiple inheritance". However, it can be achieved with interfaces, because the class can implement multiple interfaces.
In reply to First post

Re: Open Discussion Forum

by Pritom Basak (201-15-3342) -
There are 5 types of Inheritance.
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid
we can't implement multiple inheritance in java.Because, we cannot extend quite one other class.But we will achieve multiple inheritances in Java using interfaces.
In reply to First post

Re: Open Discussion Forum

by Rahad Islam (201-15-3623) -
We have 5 types of inheritance. they are :
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid.
Multiple inheritances doesn't support in java. Because it increases the complexity of the program. So to avoid ambiguity and make the java program more simple ,multiple inheritance is unsupported in Java.
In reply to First post

Re: Open Discussion Forum

by Zaky Hossain (201-15-3610) -
We have 5 types of inheritance. they are :
Single, Multilevel, Hierarchical, Multiple, Hybrid .
Multiple inheritance doesn't support in java. Because it increases the complexity of the program. So to make the java concept more simple and to reduce to complexity problem multiple inheritance is unsupported.
In reply to First post

Re: Open Discussion Forum

by Sadia Islam Tonni(201-15-3290) -
There are 5 types of Inheritance.
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid
we can't implement multiple inheritance in java.Because, we cannot extend quite one other class.But we will achieve multiple inheritances in Java using interfaces.
In reply to First post

Re: Open Discussion Forum

by Mst. Sazia Tahosin (201-15-3666) -
There are 5 types of Inheritance. Like-
1. Single
2. Multilevel
3. Hierarchical
4. Multiple
5. Hybrid

We can't implement Multiple Inheritance in Java. Because, Multiple Inheritance doesn't support in Java because of 2 reasons.
1. In java, every class is a child of Object class. When it inherits from more than one super class, sub class gets the ambiguity to acquire the property of Object class.
2. In java, every class has a constructor, if we write it explicitly or not at all. The first statement is calling super() to invoke the supper class constructor. If the class has more than one super class, it gets confused.
In reply to First post

Re: Open Discussion Forum

by Rebas Al Hasan (201-15-3712) -
There are five types of inheritance. Those are Single, Multilevel, Hierarchical, Multiple, Hybrid .

No, we can't implement multiple inheritance in java. It doesn't support in java. The reason for this complication, it gains the complexity of the program. So, to make the concept of java more simple and to lose the complexity problem multiple inheritance is unsupported.