What is some instance of operator overloading?, C/C++ Programming

A: Here are a few of the many instance of operator overloading:

myString + yourString may concatenate two std::string objects myDate++ may increment a Date object

a * b may multiply two Number objects

a[i] may access an element of an Array object

x = *p may dereference a "smart pointer" that "points" to a disk record .it could seek out to the location on disk where p "points" and return the proper record into x

 

Posted Date: 3/20/2013 3:44:03 AM | Location : United States







Related Discussions:- What is some instance of operator overloading?, Assignment Help, Ask Question on What is some instance of operator overloading?, Get Answer, Expert's Help, What is some instance of operator overloading? Discussions

Write discussion on What is some instance of operator overloading?
Your posts are moderated
Related Questions
#decode the code


pls say code for this above..

Changing Field width The printf() and scanf() functions from the standard library, use width specifier for controlling the width of its output . Similarly, the ostream class al

smugglers transfer the messages from one to another by using the mobile

I need help with virtual memory manager implementation in C

Destructors A destructor function gets implemented whenever an instance of the class to which it belongs goes out of existence. The primary usage of a destructor function is

Write a program called Series that will print/display a series of numbers starting with 1 and ending with the last number that is less than 30. The series should include only odd n

write the program to accept date and to say valid or invalid

sample of program that use in bubble sort using assignment operator in c++