learn java
The moose likes Beginning Java and the fly likes Class Extention Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Class Extention" Watch "Class Extention" New topic

Class Extention

Tony Diggs

Joined: Jun 28, 2003
Posts: 5
I've used clases and sub classes before. Is it true that only
one class can be extended ?
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
You can only directly extend one class, yes. That class may extend another class, etc, so you may have many classes that are indirectly extended, but only one direct superclass.
This seems like an introductory Java question, so I'm moving this thread to Java in General - Beginner.

"I'm not back." - Bill Harding, Twister
It is sorta covered in the JavaRanch Style Guide.
subject: Class Extention