In VB.Net Overloads keyword is used for which type?

Public Overloads Function GetEmployee() As String
End Function

Public Overloads Function GetEmployee(ByVal employee_id As Integer) As String
End Function

 Posted by vishalneeraj-24503 on 11/29/2013 | Category: VB.NET Interview questions | Views: 4163 | Points: 40
Answer:

Overloads keyword is used in Function Overloading in VB.Net,but it's not necessary to write Overloads keyword in function.

We can simply write the same method as follows:

Public Function GetEmployee() As String

End Function

Public Function GetEmployee(ByVal employee_id As Integer) As String
End Function


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response