heightand eye_color that the child class child will inherit from the parent because the child subclass is inheriting from the parent base classthe child class can reuse the code of parentallowing the programmer to use fewer lines of code and decrease redundancy syntaxclass parentclassbody of parentclass class childclass(parentclass)body of child class so here child class inherits features from the parent classadding new features to it this results in re-usability of code exampleclass parentdef sum(self, , ) = + print("addition is ",cclass child(parent)def mul(self, , ) = * print("multiplication ",cc child(creating object of child class sum( , mul( , accessing the sum function of parent class using object of the child class outputaddition is multiplication the above example shows simple example of inheritance the child class inherit the properties of the parent classthat' why the object of child class can access the method of the parent class child or subclasses are classes that will inherit from the parent class that means that each child class will be able to make use of the methods and variables of the parent class another examplepage