class Parent(object): def parentMethod(self): print 'calling parent method'class Child(Parent): def childMethod(self): print 'calling child method'p = Parent() p.parentMethod()c = Child() c.childMethod() c.parentMethod()
Name (required)
email (will not be published) (required)
Website