L
Lee
Does VB.NET support overloaded operators? For instance, if I create a
complex number class, Complex, can I do code like this?
Dim a As New Complex(1.2, 3.4)
Dim b As New Complex(5.6, 7.89)
b = b * 4
a = a + b
I'm not sure if Operator Overloading is an OOP (and thus maybe .NET)
feature, or a C++/C# language feature.
complex number class, Complex, can I do code like this?
Dim a As New Complex(1.2, 3.4)
Dim b As New Complex(5.6, 7.89)
b = b * 4
a = a + b
I'm not sure if Operator Overloading is an OOP (and thus maybe .NET)
feature, or a C++/C# language feature.