Visual Studio Next Generation: Language Enhancements

Inheritance

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

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“To iterate is human, to recurse divine” - L. Peter Deutsch