aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes multiple inheritance Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "multiple inheritance" Watch "multiple inheritance" New topic
Author

multiple inheritance

Kamlesh Devani
Ranch Hand

Joined: Mar 15, 2005
Posts: 37
In java multiple inheritance is done by extending a super class & implementing an interface to a sub class. I wanted to know why java does not supports pure multiple inheritance which is possible in C++? Why there is a need for an interface. Can anybody help me to clear my doubt?...

Thanks in advance...
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
FYI please.. http://www.javaworld.com/javaqa/2002-07/02-qa-0719-multinheritance.html
[ July 01, 2005: Message edited by: Srinivasa Raghavan ]

Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
muthukumaran krishnaswamy
Greenhorn

Joined: Jul 01, 2005
Posts: 1
Its to avoid the ambiguity that may arise due to virtual inheritance
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Keep in mind that C++ and Java are two different languages, even though their ideas are very similar.

Thus, you cannot compare the orange and apple directly, just like why English supports present/past/future tenses in verbs while Chinese does not.

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
 
Consider Paul's rocket mass heater.
 
subject: multiple inheritance