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
there is a pebble merchant. he sells the pebbles,that are used for shining the floor.his main duty is to take the length of the room side but he sometines mistakes doing that and m

#Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new techn

Type Casting Implicit type conversions, as allowed by the language, can lead to errors creeping in the program if care is not taken. Thus, explicit type conversions may be used

I am an online tutor who can teach computer science and programming language. Is there any requirement for this?

Networking program development. 1.ARP protocol. 2.Switching HUB. 3.wireshark. 4.winpcap library. 5.C++ & MFC. 6.LAN evironment through switch and HUB(static ARP t


Create a class Word, representing a word. Two words should be considered equal if they consist of the same sequence of letters and we consider upper case and lower case as equal. F

Question 1 Describe the theory behind class templates and function templates along with relevant programming examples Question 2 With the help of suitable programming example

Multiple inheritance with a common base (Hybrid Inheritance) Inheritance is an important and powerful feature of OOP. Only the imagination of the person concerned is the limit.

(a) Write a fragment of code that declares a variable colSp of type ColourSpot, and then moves it to the point (3, -4), and sets its colour to Green. (b) A function QU8 is speci