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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -