Can you explain 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 known as the base class and the new class is called 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
---
End Class