Help required in polymorphism
Design and Architecture
1
Posts
1
Posters
1
Views
1
Watching
-
Hi, See my code below. Public Class OOPS Public Function Check(ByVal a As Int32, ByVal b As Int32) As Int16 Return a + b End Function Public Function Check(ByVal a As Int16, ByVal b As Int16) As Int16 Return a - b End Function End Class Dim obj As New OOPS Dim retVal As Int16 retVal = obj.Check(1, 2) Which function will be called the first one or the second one and why. Thanks in advance for your help Rohan
Rohan