Top Companies hiring on Click Here to apply !
Click Here to Submit Your Resume for MNC Jobs !

Go Back > Java Introduction > Object Oriented Concepts
Forgot User Name / Password ?

Thread Tools Display Modes
Old 15 September 2008, 01:29 PM
vbraojava's Avatar
vbraojava vbraojava is offline
Senior Member
Join Date: 04 Sep 2008
Posts: 1,218
Question How can we achieve Multiple Inheritance in Java ?

Click Here To Register & Submit Your Resume !

Directly we can't achieve Multiple Inheritance in Java.

Indirectly there are two ways, those are :

1. We can achieve Multiple Inheritance by implementing more than one Interfaces, because we can have chance to implement more than one Interfaces in Java.

2. Another indirect way to achieve Multiple Inheritance is, doing by repeated use of Single Inheritance.

: Class z extends A,B --- Inavallid (bcz direct way)

Class B extends A
} ---- those are vallid (bcz indirect way)
Class Z extends B

So, here Class z can have all the features of Class B and Class A, but here we are doing indirect way with the help of Single Inheritance.

Click Here To Register & Submit Your Resume !
Reply With Quote


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Java does not support Multiple Inheritance ? vbraojava Object Oriented Concepts 1 21 September 2008 02:55 PM
What are the Advantages of Inheritance ? vbraojava Object Oriented Concepts 0 11 September 2008 12:38 PM
What is Inheritance ? vbraojava Object Oriented Concepts 0 05 September 2008 04:35 PM
Walk-In @ "MNC COMPANIES" : Multiple Skills : On 30, 31 Aug 2008 pirates Java Experienced Walk-In Jobs 0 27 August 2008 12:30 PM

All times are GMT +5.5. The time now is 08:38 PM.

Powered by vBulletin® Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Copyright 2008 ChetanaS, All Rights Reserved.