English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Explain in Details Operator Overloading in C++ with Web reference.

2007-03-20 18:29:50 · 3 answers · asked by gowtham raghavan.tr 1 in Computers & Internet Programming & Design

3 answers

go through the operator overloading section in stroustoup's C++ book and do yourself an favour by coding few overloading example

2007-03-21 00:33:22 · answer #1 · answered by Anonymous · 0 0

Operator overloading is under polymorphism a special feature in C++. While the operators in C have usual meaning operator overloading in C++ allows us to overload the operator to give the certain user defined functionality to the operator.

Syntax goes like this
operator x(arguments)
{
functionality
}

where x is an operator

operator overloading is generally used to operate the objects using operators instead of operating their members.

2007-03-21 01:38:41 · answer #2 · answered by NIKHIL JOSHI 1 · 1 0

http://www.cs.caltech.edu/courses/cs11/material/cpp/donnie/cpp-ops.html

2007-03-21 02:13:03 · answer #3 · answered by Coosa 2 · 0 0

fedest.com, questions and answers