Inheritance in Python tccicomputercoaching.com Definition: Inheritance is the mechanism to build a new class from old class. So, new class can access the data property of old class. Old class is called parent class and new class is called child class.
What can child class can do? -Child calls can reuse data or function of parent class. -Child class can redefine function of parent class. -Child class can add own data also.
Programming Structure of Inheritance: class parent: .....data .....def fun1(self): .......... class child(parent): ....data declaration ....def fun2(self): ........statement