Can a superclass inherit subclass methods and instance variables? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

Can a superclass inherit subclass methods and instance variables?

Superclass inherit subclass

12th Aug 2017, 1:00 PM
PandaPanda🐼
PandaPanda🐼 - avatar
2 ответов
+ 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