Inheritance of class in Python? -
suppose have parent class a
, daughter class b
. a
has 10 methods in , b requires 3 of methods. how can done?
there nothing special do.
just inherit class a
:
class b(a): super(b, self).__init__():
use/override methods need , ignore rest.
Comments
Post a Comment