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
I have a assignment deadline is 11.11.2015 can I get help

MAT LAB programming Project Description: Just for who are PROFESSIONAL IN MATLAB i have simulation and i would like to simulate the equation in ,and test the all simulatio

In the Byteland country a string "s" is said to super ascii string if and only if count of each charecter in the string is equal to its ascci value in the byteland country ascii co

Program is to append the contents of one file to another: void main()    {   clrscr();   fstream file1,file2;   char st1[13],st2[13];/* 13 because a filename canno

Write a program to process bank accounts. Create a base class named Account and two derived classes named Savings and Checking. In the base class, use an int AccountNum and a dou

Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed

Object Conversions Just like initialization, conversions are also done automatically when an object of a derived class is assigned to an object of the base class. Though, the c

A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome