What is operator overloading? Give Example
Answer Posted / 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 |
Post New Answer View All Answers
What is the oops and benefits of oops programming?
Is this job good for future? can do this job post grduate student?
What is constructor overloading in oop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Explain virtual inheritance?
Write a c++ program to display pass and fail for three student using static member function
Why is oop useful?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is abstraction with example?
What is the types of inheritance?
What is abstraction in oop with example?
What is class in oop with example?
What is multilevel inheritance explain with example?
What is object in oops?