开发者

overloads in vb.net [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

“Overloads” keyword in VB.NET

what exactly overloads signifies in vb.net coz even if 开发者_StackOverflow社区i am not writing the overloads in derived class function its working in the similar manner when i am writing it.


Function overloading allows more than one function to be defined with the same name in the same class, as long as the arguments are different. Not to be confused with function overriding where functions have the same number, type of arguments its the implementations in the derived classes that differs.


I believe that the overloads keyword in vb.net is completely optional, and is there only to support better readability of the code.

There is an all-or-nothing rule, however, so if you use it for one method, you have to use it for all overloading methods.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜