Problem Statement
Describe the types of inheritance (single, multilevel, hierarchical, multiple, hybrid) and give examples.
Explanation
Inheritance can take many forms: *Single inheritance* where a class inherits from one base class; *Multilevel inheritance* where a class inherits from a class which itself inherits another; *Hierarchical inheritance* where multiple subclasses inherit from the same superclass; *Multiple inheritance* where a class inherits from more than one base class (allowed in some languages); and *Hybrid inheritance* which combines two or more of the above. For example, in Java you might have `class Dog extends Animal` (single), `class Puppy extends Dog extends Animal` (multilevel), `class Cat extends Animal` and `class Dog extends Animal` (hierarchical). Explaining language support and limitations—such as Java not supporting multiple inheritance of classes—shows strong interview readiness.