File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Class Extention
It's not a secret anymore!