Can a superclass inherit subclass methods and instance variables? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Can a superclass inherit subclass methods and instance variables?

Superclass inherit subclass

12th Aug 2017, 1:00 PM
PandaPanda🐼
PandaPanda🐼 - avatar
2 Réponses
+ 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