• 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 Problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! Friends,
AS we know java don't support multiple inheritance but if scenrio is like that there are two classes and we want to have features of both (ie multiple Inheritance) so is there any way we can acheieve this through Java or there is no way.
Thanks!
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by ashah:
Hello! Friends,
AS we know java don't support multiple inheritance but if scenrio is like that there are two classes and we want to have features of both (ie multiple Inheritance) so is there any way we can acheieve this through Java or there is no way.
Thanks!


If I am understanding you correctly in what you are trying to do,
I believe that is what the Interface is used for.
Good Luck!
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Just make other class as an interface and you can implement any no of interface. No probs.
 
reply
    Bookmark Topic Watch Topic
  • New Topic