+ 1
Cyrcular inheritance are not implemented, but what happens if i do this?
Class A(B): lol=1 Class B(C): lol=2 Class C(A): lol=3 can class A inherits from class B that is been declareted after ? and so on
1 Respuesta
+ 1
lol has no certain value . like this :a=A()
LOL=1
then a inherent from B the new value of lol
so lol become 2
then B inherent from C the new value of lol
so lol become 3
then C inherent from A the new value of lol
so lol is now back to 1
then go back to the third line and continue reading