Can you define what inheritance is and an example of when you might use it?
The process of deriving a new class from an existing class is known as Inheritance. The old class is called the base class and the new class is known as derived class. The derived class inherits some or everything of the base class. In Visual Basic we use the Inherits keyword to inherit single class from other.
Ex:
Public Class Base
---
---
End Class
Public Class Derived
Inherits Base