Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Extention

 
Tony Diggs
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've used clases and sub classes before. Is it true that only
one class can be extended ?
Tony,
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic