Skip to main content

All Questions

-3 votes
1 answer
2k views

Why constructor inheritance is not supported in Python? [closed]

Consider the case where I have the following classes, class A: def __init__(self): print("Class A") class B(A): def __init__(self): print("Class B") b = B() The expected ...
Saurabh P Bhandari's user avatar