Wednesday 15 January 2014

Can I override and overload the same function in vb.net? -


Is it possible to override and overload the same function in vb.net at the same time? Something like this:

  Delete public overload overload function (as the integral byline code) as Boolean    

If your class has more than one method with the same name and different signature, you can use the overload keyword. Please see the code below and answer it if it is useful.

  Delete Public Class Base Public Overridi Function (code as integer) True End Function as Bullion Return End Class Public Class passes the base public overload overrides function (code as integer) as the boolean return mybus. Delete (code) termination function Delete public overload function (id as integer, id as integer) Boolean return Mybase.Delete (code) end function end class    

No comments:

Post a Comment