2009-09-08

Override assigment operators in C#

A C++ class can implement assignment operators to
1) assign itself, or
2) convert the other class to itself.
See the example.

Unlike C++, C# does not support override of assignment operator. C# uses "implicit" key word to replace the assignment operator. See the example here.

No comments:

Post a Comment