own subclass

CAN A CLASS BE IT'S OWN SUBCLASS?

IF YES HOW?PLEASE GIVE ONE EXAMPLE.

THANKS IN ADVANCE.

[108 byte] By [maghiaa] at [2007-11-27 11:17:27]
# 1

No ,it can't

student-javaa at 2007-7-29 14:24:59 > top of Java-index,Java Essentials,New To Java...
# 2

Of course not. Not only would the compiler not allow it, what use would it be? The class already has all it's own attributes, what would you possibly inherit?

Odd question

georgemca at 2007-7-29 14:24:59 > top of Java-index,Java Essentials,New To Java...
# 3

> CAN A CLASS BE IT'S OWN SUBCLASS?

STOP BLOODY SHOUTING!!!!!!

jverda at 2007-7-29 14:24:59 > top of Java-index,Java Essentials,New To Java...