+ 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

12th Aug 2016, 11:08 AM
Marco Romanin
Marco Romanin - avatar
1 Odpowiedź
+ 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
30th Aug 2016, 6:19 PM
Ahmed chiboub
Ahmed chiboub - avatar