figure - the output shows that the class is fully functional extending classes to make new classes as you might imaginecreating fully functionalproduction-grade class (one that is used in real-world application actually running on system that is accessed by usersis time consuming because real classes perform lot of tasks fortunatelypython supports feature called inheritance by using inheritanceyou can obtain the features you want from parent class when creating child class overriding the features that you don' need and adding new features lets you create new classes relatively fast and with lot less effort on your part in additionbecause the parent code is already testedyou don' have to put quite as much effort into ensuring that your new class works as expected the following sections show how to build and use classes that inherit from each other building the child class parent classes are normally supersets of something for exampleyou might create parent class named car and then create child classes of various car types around it in this caseyou build parent class named animal and use it to define child class named chicken of courseyou can easily add other child classes after you have animal in placesuch as gorilla class howeverfor this exampleyou build just the one parent and one child classas shown in listing - this example also appears with the downloadable source code as animals py