Public Class Class1Derived Inherits Class1 Public Overrides Function (Google webspace)
Public Class Class1Derived Inherits Class1 Public Overrides Function IncSalary(ByVal sSalary As Single) As Single IncSalary = sSalary * CSng(1.2) End Function End Class Now consider the following code, placed in a form module: Dim c1 As New Class1( ) Dim c2 As New Class1Derived( ) Dim c1var As Class1 c1var = c1 c1var.ShowIncSalary(10000) ‘ Shows 11000, 11000 c1var = c2 c1var.ShowIncSalary(10000) ‘ Shows 12000, 11000 The first call to ShowIncSalary is made using a variable of type Class1 that refers to an object of type Class1. In this case, both calls: Me.ShowIncSalary MyClass.ShowIncSalary return the same value, because they both call IncSalary in the base class Class1. However, in the second case, the variable of type Class1 holds a reference to an object of the derived class Class1Derived. In this case, Me refers to an object of type Class1Derived, whereas MyClass still refers to the base class Class1 wherein the keyword MyClass appears. Thus: Me.ShowIncSalary returns 12000, whereas: MyClass.ShowIncSalary returns 10000. VB .NET/VB 6 Differences The MyBase keyword is new to VB .NET. See Also Me Operator Namespace Statement Syntax
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider