sscasc@tumkur obj tumkur_org('mahesh''span', print(obj full_name)dotted notation print(obj make_email()print(obj increment()print(obj full_nameprint(obj make_email()print(obj increment()outputhari das hari das@gmail com mahesh span mahesh span@gmail com inheritance inheritance in python is based on similar ideas used in other object oriented languages like javac+etc inheritance allows us to inherit methods and attributes of the parent class by inheritancea new child class automatically gets all of the methods and attributes of the existing parent class the syntax is given as followsclass baseclass(object)pass class derivedclass(baseclass)the baseclass is the already existing (parentclassand the derivedclass is the new (childclass that inherits (or subclassesattributes from baseclass or inheritance enables you to define general class ( superclassand later extend it to more specialized classes (subclassesexample:simple_inheritance py class rectangle()def __init__(selfwh)self self def area(self)return self self class square(rectangle)def __init__(selfl, )call parent constructor super(__init__(lbself = self = sp_python programming