There are five types of inheritance namely:
1) Single Inheritance
2) Multi Level Inheritance
3) Multiple Inheritance
4) Hierarchical Inheritance
5) Hybrid Inheritance
1) Single Inheritance
2) Multi Level Inheritance
3) Multiple Inheritance
4) Hierarchical Inheritance
5) Hybrid Inheritance
Single Inheritance |
Multi Level Inheritance |
Multiple Inheritance |
Hierarchical Inheritance |
Hybrid Inheritance |
excellent
ReplyDeletemultiple and hybrid inheritance is not allowed in JAVA
ReplyDeletewe cannot extend multiple classes but we can implement multiple classes
@Rehan you are mistaken.
ReplyDeleteJava supports all the above mentioned types of inheritance except multiple inheritance in the case classes.
If you consider interfaces, multiple inheritance is also supported.
Excellent approach of inheritance in java..java training in chennai
ReplyDeleteVery informative ..i suggest this blog to my friends..Thank you for sharingjava training in chennai | chennai's no.1 java training in chennai | best java institute in chennai
ReplyDeleteThanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!
ReplyDeleteJava Training in Chennai
Java Training in Bangalore
Java Training in Bangalore
Hey Nice Blog!! Thanks For Sharing!!!Wonderful blog & good post.Its really helpful for me, waiting for a more new post. Keep Blogging!
ReplyDeletebest java training in coimbatore
php training in coimbatore
best php training institutes in coimbatore
Thanks for sharing this post,your blog is so helpful for my studies..keep on blogging
ReplyDeleteDot Net Training Center in Chennai
Manual Testing Training in Chennai
Java Training Institute in Chennai
PHP Training Institutes
Superb writing. Thanks for the information.
ReplyDeleteJava classes in Pune