Inheritance is one of the most powerful features of Object-Oriented Programming. It allows you to create a new class (called the child class or derived class) that inherits properties and methods from an existing class (called the parent class or base class).
Think of it this way: You have a generic "Vehicle" class with basic properties like wheels, engine, and speed. Now you want to create specific types like Car, Bike, and Truck. Instead of writing everything from scratch, you just inherit from Vehicle and add specific features.
Real-World Verification Example
In verification, you might have a base Transaction class. From it, you create specialized transactions like ReadTransaction, WriteTransaction, BurstTransaction, etc. Each inherits common features but adds its own specific behavior.