class Base: pass class Derived1(Base): pass class Derived2(Derived1): pass
Derived1is derived from
Derived2is derived from
>>> class Website: def first(self): print ('freetimelearning.com') >>> class Second(Website): def sec(self): print ('www.freetimelearning.com') >>> class Third(Second): def final(self): print ('www.freetimelearn.com') >>> a=Third() >>> a.first() freetimelearning.com >>> a.sec() www.freetimelearning.com >>> a.final() www.freetimelearn.com >>>
Our website is made possible by displaying ads to our visitors.
Please help us continue to provide you with free. So please disabling your ad blocker.