Can a superclass inherit subclass methods and instance variables? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can a superclass inherit subclass methods and instance variables?

Superclass inherit subclass

12th Aug 2017, 1:00 PM
PandaPanda🐼
PandaPanda🐼 - avatar
2 Answers
+ 3
No. But vice versa is possible, ONLY. I.e. Methods and properties of superclass can be inherited by subclass/childclass
12th Aug 2017, 2:13 PM
Saidmamad Gulomshoev
Saidmamad Gulomshoev - avatar
0
😀😀😀
29th Oct 2017, 5:41 AM
max 4 u om
max 4 u om - avatar