Networking, Programming and Graphics Tutorials

Operator overloading - C++ [1/2]

Type:
Operator overloading - C++
Level: Intermediate Networking, Programming and Graphics Tutorials Networking, Programming and Graphics Tutorials 
Operator overloading - C++
Date: 2006-Dec-08
Operator overloading - C++
Visited: 2342 times
Operator overloading - C++
Rating: Operator overloading - C++
Operator overloading - C++
Author: Alex Plumpton

This tutorial will explain how using Operator overloading in C++ language
Operator overloading is the process by which already existing operators like +,-,= etc are given different meanings. For example, the arithmetic operator +, which adds two numbers can be used to add two objects. That is, the + operator can act on the abstract data types in the same way as on the built-in data types. Thus the + operator is overloaded with a different meaning besides the existing meaning. When an operator is overloaded, the original meaning is not lost.

Operator overloading - C++
1. Process by which existing operators are given different meanings.
2. Operators made to act on abstract data types in same way as on built-in data types original meaning not lost on overloading the operator .
3. Operators which cannot be overloaded are:
- scope resolution operator
- new
- size of
- conditional operator (?:)
- class member operator (.")
Means to Learn

Networking, Programming and Graphics Tutorials - Operator overloading - C++ [1/2] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: Function overloading and operator overloading c++  operator overloading and function overloading  function overloading & operator overloading inC++  function overloading operator overloading c++  What is function overloading and operator overloading?  example for function overloading and operator overloading in c++  operator,overloading, function overloading  6) What is function overloading and operator overloading?  function overloading and operator overloading  function overloading and operator overloading in c++