Top Companies hiring on Shine.com. Click Here to apply !
Click Here to Submit Your Resume for MNC Jobs !
JavaKen.com

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


Reply
 
Thread Tools Display Modes
  #1  
Old 15 September 2008, 12: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.

Example
: 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

Reply



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 01:55 PM
What are the Advantages of Inheritance ? vbraojava Object Oriented Concepts 0 11 September 2008 11:38 AM
What is Inheritance ? vbraojava Object Oriented Concepts 0 05 September 2008 03:35 PM
Walk-In @ "MNC COMPANIES" : Multiple Skills : On 30, 31 Aug 2008 pirates Java Experienced Walk-In Jobs 0 27 August 2008 11:30 AM


All times are GMT +5.5. The time now is 01:38 AM.


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