can you define what inheritance is and an example


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

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: can you define what inheritance is and an example
Reference No:- TGS0310414

Expected delivery within 24 Hours