By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,559 Members | 1,180 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,559 IT Pros & Developers. It's quick & easy.

Operator Overloading

P: n/a
I use VB.NET to create ASP.NET apps. If I am not wrong, there is
something called method overloading in VB.NET (like in C#) which is
one of the features in OOP (polymorphism) but does VB.NET also include
operator overloading like C# does?

Ron

Oct 9 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
First you should understand that overloading is not a C# or VB .NET concept,
it's an OOP concept. Second overloading is not polymorphism, nor does using
it necessarially mean polymorphism is taking place.

VB .NET has always had the ability to overload properites and methods. But
yes, in VB .NET 2005 the ability to overload an operator (=,+,-, etc.) has
been added.

This Google search returns many articles discussing it:

http://www.google.com/search?q=vb+.n...e=utf8&oe=utf8

-Scott
<rn**@rediffmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
>I use VB.NET to create ASP.NET apps. If I am not wrong, there is
something called method overloading in VB.NET (like in C#) which is
one of the features in OOP (polymorphism) but does VB.NET also include
operator overloading like C# does?

Ron

Oct 9 '07 #2

P: n/a
Yes, you can create overloaded method parameters in both VB.NET and C#.
VB.NET even makes it a little easier with optional parameters.

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net
<rn**@rediffmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
>I use VB.NET to create ASP.NET apps. If I am not wrong, there is
something called method overloading in VB.NET (like in C#) which is
one of the features in OOP (polymorphism) but does VB.NET also include
operator overloading like C# does?

Ron
Oct 9 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.