Library tutorials & articles

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

Comments

  1. 12 Nov 2002 at 17:10

    The Object Oriented feature like Inheritance,Polymorphism,Encapsulation in Visual Basic is really a great achievement.Offcourse making a VB program as Multithreaded and allowing STructured exception handling is other great achievements.


    But I beleive there is a potential drawback associated with VB.That is its languag construct.SImultaneously there should be effort in improving the Construct/Style of VB language.
    Otherwise there will be a learning curve for any object oriented C++/Java developer to use VB.
    It cannot be called as a ObjectOriented language unless the Construct of the language is similar to any of the ObjectOrieneted Language.


    Ghanshyam.

  2. 01 Aug 2002 at 21:18

    I am not sure if you have your whole VB history down. I learned VB from a Version 2.0 Demo. Also, did you also know there was Visual Basic for DOS?

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Visual Studio Next Generation: Language Enhancements.

Leave a comment

Sign in or Join us (it's free).

AddThis

Related podcasts

  • CodeCast Episode 4: State of .NET, IE8, ASP.NET MVC, and O'Reilly Media

    CodeCast Episode 4: State of .NET, IE8, ASP.NET MVC, and O'Reilly MediaHosts Ken Levy and Markus Egger discuss the new State of .NET events, IE8, ASP.NET MVC, followed by an interview from PDC with two editors from O'Reilly Media. More on ASP.NET MVC can be found at http://asp.net/mvc. Interview...

Related jobs

Events coming up

  • Dec 6

    Developing AJAX Web Applications with Castle Monorail

    London, United Kingdom

    Monorail is the model-view-controller engine of the Castle Project, bringing many of the best ideas of Ruby on Rails to the .NET world. In this talk, David De Florinier and Gojko Adzic show how Monorail makes it easy to develop .NET based AJAX applications, and how to use the Castle Project to build Web 2.0 applications effectively. Come to this session if you are a .NET web developer. Everyone is welcome!