Public Class Tester Public Shared Sub Main Dim objBob As New Bob objBob.Walk("Now I'm walking...") End Sub End Class Public Class Person Public Sub Walk() Console.WriteLine("Walking...") End Sub End Class Class Bob Inherits Person Public Overloads Sub Walk(ByVal Text As String) Console.WriteLine(Text) End Sub End Class
Now I'm walking...
6.9.Overloaded functions | ||||
6.9.1. | Overloads function | |||
6.9.2. | Using overloaded methods | |||
6.9.3. | Using overloaded methods to print arrays of different types | |||
6.9.4. | Method Overloads with different number of parameters | |||
6.9.5. | Inheritance and overloads |