Consistently the number one most requested feature for Visual Basic is support for implementation inheritance. Developing in Internet time requires rapid assembly and massive reuse. To facilitate implementation inheritance, Visual Basic will add the Inherits keyword to the language.
Developers can use the new keyword Inherits or the class property sheet's Inherits property to derive from an existing class.
Class1
Function GetCustomer()
...
End Function
Class2
Inherits Class1
Function GetOrders()
...
End Function
The Inherits statement supports all the usual properties associated with inheritance.
- Instances of the derived class support all methods and interfaces supported by the base class
- The derived class can override methods defined in the base class using the Overrides keyword
- The derived class can extend the set of methods and interfaces supported by the base class
Comments