Inheritance allows classes to inherit properties from other classes. There are several types of inheritance:
Single inheritance involves one base class and one derived class. Multi-level inheritance has a base class derived by a child class, which is then derived by another child class. Multiple inheritance allows a derived class to inherit from more than one base class. Hierarchical inheritance has one base class inherited by multiple derived classes. Hybrid inheritance combines two or more inheritance types to design a program.