difference between shadows and overloads in vb.net.
-
Sir/Madam, I wanted to know the basic difference between shadows and overloads. As show function is predifined.If I use show function in the following way. Private Shadows Sub show() End Sub Private Overloads Sub show() End Sub Please illustrate the difference between them.Also In which situation , I should use shadows and overloads Thanks and Regards Pankaj
-
Sir/Madam, I wanted to know the basic difference between shadows and overloads. As show function is predifined.If I use show function in the following way. Private Shadows Sub show() End Sub Private Overloads Sub show() End Sub Please illustrate the difference between them.Also In which situation , I should use shadows and overloads Thanks and Regards Pankaj
For example you have a base class: Public Class Exhibitionist Public Sub Show() End Sub End Class and another class which derives from the Exhibitionist class: Public Class SpecializedExhibitionist Inherits Exhibitionist ---A) Public Shadows Sub Show() End Sub ---B) Public Overload Sub Show( ByVal fullInfo As Boolean) End Sub End Class - with version A) you can call SpecializedExhibitionist_Instance.Show() - with version B) you can call SpecializedExhibitionist_Instance.Show() SpecializedExhibitionist_Instance.Show( true ) Shadows means, that the Function "Show" of the base class is "cloaked" Overloads means, that you add a new "Show" function with other parameters
solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...