Operator Overloading

R

rn5a

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
 
S

Scott M.

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+....d=ie7&rls=com.microsoft:en-US&ie=utf8&oe=utf8

-Scott
 
S

Steve C. Orr [MCSD, MVP, CSM, ASP Insider]

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top