• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple Inheritance in java...

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java won't support multiple inheritance and that's why we have interfaces....

Then what about Object class,which one will get extended by every class in java....it may be implicit thing....

from this can i state like this :

"java is indirectly supporting multiple inheritance"

expecting a descriptive answer
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Then what about Object class,which one will get extended by every class in java....it may be implicit thing....



actually there is a tricky answer. When one object, say a, extend another object, say b. Then b also extends Object.

So now relationship becomes like: Object => b => a. So where do you see multiple inheritance?
[ August 08, 2007: Message edited by: Sahid Khan ]
 
rajendra peddinti
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

actually there is a tricky answer. When one object, say a, extend another object, say b. Then b also extends Object.

So now relationship becomes like: Object => b => a. So where do you see multiple inheritance?



ohk!!! got it....i missed out the fundamental thing...thanq
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic