Using Inheritance We can implement specialized classes using inheritance! The class definition allows us to specify that a new class inherits from a superclass: class <Class Name>(<Superclass Name>): <suite> We call the more specialized class a subclass of the general class and the general class a superclass of the specialized class. The subclass inherits all class attributes of the superclass. The subclass can override attributes to specify how it is different from the superclass. DemoUsing Inheritance We can implement specialized classes using inheritance! The class definition allows us to specify that a new class inherits from a superclass: class <Class Name>(<Superclass Name>): <suite> We call the more specialized class a subclass of the general class and the general class a superclass of the specialized class. The subclass inherits all class attributes of the superclass. The subclass can override attributes to specify how it is different from the superclass. Demo