
- Forum
- Programming Talk
- C and C++
- operator overloading???
operator overloading???
This is a discussion on operator overloading??? within the C and C++ forums, part of the Programming Talk category; any programmer in here?...
-
05-20-2011, 09:00 AM #11
any programmer in here?
-
C++ allows the overloading of operators and functions. A single operator or function can be used with different classes of objects, which can simplify a program's code. Overloading allows a user to control the behavior of an operator with both user-defined and standard classes.
-
08-23-2011, 03:04 AM #13
- Join Date
- Aug 2011
- Location
- Hyderabad
- Answers
- 22
operator overloading is the property of Object oriented programming which gives an extra ability to an operator to act on a User-defined operand(Objects).
Advantages:
> It will act differently depending on the operands provided. Its called extesibility.
> It is not limited to work only with primitive Data Type.
> By using this overloading we can easily acces the objects to perform any operations.
> It makes code much more readable.
-
Sponsored Ads

Reply With Quote





