why circular inheritance is not possible? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

why circular inheritance is not possible?

21st Oct 2016, 12:15 PM
Sabiba Hossain
Sabiba Hossain - avatar
4 Réponses
+ 6
@Kirk: My post was meant to show that we don't need circular inheritance in the first place rather than pointing out problems that may arise when trying to implement it. Feel free to develop that second point.
22nd Oct 2016, 8:06 AM
Zen
Zen - avatar
+ 3
If a A is a B, and a B is a A, then they are basically the same entity.
21st Oct 2016, 1:19 PM
Zen
Zen - avatar
+ 2
@Zen - wouldn't this also create a gc problem?
22nd Oct 2016, 6:34 AM
Kirk Schafer
Kirk Schafer - avatar
0
Ow! Yeah!!!!! Thank you a lot😃
21st Oct 2016, 1:24 PM
Sabiba Hossain
Sabiba Hossain - avatar