A java class can extends itself? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

A java class can extends itself?

Suppose i create one class in java programming name "A". Now "A" can extends itself?

25th Jul 2018, 7:44 PM
Sneher Ador
Sneher Ador - avatar
2 Answers
+ 1
No there is absolutely no reason to do that either. It's like asking "Can I inherit from myself?"
25th Jul 2018, 7:49 PM
TurtleShell
TurtleShell - avatar