Can you pls tell me why I get the error when I use the OVERLOADS keyword in the below code? The error I am getting is as follows:
Module Module1
Sub Main()
Dim name As String = "Sougata"
Dim age As Integer = 36
Console.WriteLine("Name before Age: {0} ", test(name, age))
Console.WriteLine("Age before Name: {0}", test(age, name))
Console.ReadLine()
End Sub
Overloads Function test(ByVal name As String, ByVal age As Integer) As Integer
Return 1
End Function
Overloads Function test(ByVal a As Integer, ByVal n As String) As Integer
Return 2
End Function
End Module