What is operator overloading? Give Example

Answers were Sorted based on User's Feedback



What is operator overloading? Give Example..

Answer / palsaniya sadikhasan, meta.

Operator overloading is an operator that perform different
task based on given arguments.
e.g. suppose '+' is an operator is used to add two number
and if we use '+' with two strings then operator '+' can
concate two string is known as operator overloading.

or

operator overloading means one operator can perform multiple
operation based on given arguments.

Is This Answer Correct ?    39 Yes 2 No

What is operator overloading? Give Example..

Answer / riya piyush jain

Operator overloading (less commonly known as operator ad-
hoc polymorphism) is a specific case of polymorphism in
which some or all of operators like +, =, or == have
different implementations depending on the types of their
arguments. Sometimes the overloadings are defined by the
language; sometimes the programmer can implement support
for new types.

Is This Answer Correct ?    23 Yes 1 No

What is operator overloading? Give Example..

Answer / sagar kelkar

it may be defined as an operator performing different
operations.for ex-arithmetic operators such
as(+,-,*,/,++,--) etc..

Is This Answer Correct ?    22 Yes 8 No

What is operator overloading? Give Example..

Answer / msn

Making an operator doing different operation other than
the normal one is termed as operator overloading..

Say for example Operator + is normally used to add numbers
but we can add another function concatenate two strings

Is This Answer Correct ?    9 Yes 0 No

What is operator overloading? Give Example..

Answer / selva

operator performing different task based on argument supplied.

Is This Answer Correct ?    4 Yes 0 No

What is operator overloading? Give Example..

Answer / karthik

A single operator is used to perform diff fuction in a
program is known as operator overloading..

Is This Answer Correct ?    4 Yes 2 No

What is operator overloading? Give Example..

Answer / xxxx

A single operator is used to perform diff fuction in a
program is known as operator overloading..
Operator overloading is an operator that perform different
task based on given arguments.
e.g. suppose '+' is an operator is used to add two number
and if we use '+' with two strings then operator '+' can
concate two string is known as operator overloading.

or

operator overloading means one operator can perform multiple
operation based on given arguments.

Is This Answer Correct ?    3 Yes 1 No

What is operator overloading? Give Example..

Answer / mohd nadeem

operator overloading provides special meaning to predefined operators with respect to user defined data types like class, struct, enum.

Is This Answer Correct ?    1 Yes 0 No

What is operator overloading? Give Example..

Answer / karthika

usually operators dealing with basic data types,operator
overloading allows the users to give additional meaning to
most operators so that it can be used with user's own data
types.

Is This Answer Correct ?    0 Yes 0 No

What is operator overloading? Give Example..

Answer / kalai391989

operator overloading is a function..

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More OOPS Interview Questions

what is Class in oops with example?

4 Answers   HCL,


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

2 Answers  


Why oops is important?

0 Answers  


Why is oop better than procedural?

0 Answers  


What are oops functions?

0 Answers  






Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


Should you protect the global data in threads? Why or why not?

2 Answers   IBM,


difference between static and non-static variables?

2 Answers  


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

0 Answers   DELL,


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


What is stream in oop?

0 Answers  


Categories