wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Why can we extend only one class at a time in java and implement various? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why can we extend only one class at a time in java and implement various?" Watch "Why can we extend only one class at a time in java and implement various?" New topic
Author

Why can we extend only one class at a time in java and implement various?

Abhishek Reddy
Ranch Hand

Joined: Mar 28, 2006
Posts: 259
Why can we extend only one class at a time in java and implement various?


Abhishek
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
That was a decision the language designers made. We just live with it. They had a goal of making things easier and less error prone than C++ and this is one place they chose to simplify.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Google for "diamond of death"...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why can we extend only one class at a time in java and implement various?
 
Similar Threads
can a java.lang class be extended using extend ?
interface
extend class
Extending interface
multiple inheritance in java