What is operator overloading? Give Example
Answer Posted / 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 |
Post New Answer View All Answers
What is use of overloading?
write a C++ program for booking using constructor and destructor.
What is encapsulation in ict?
Why is oop useful?
#include
What is multilevel inheritance in oop?
can inline function declare in private part of class?
What are the types of abstraction?
Write a c++ program to display pass and fail for three student using static member function
What is oops and why we use oops?
officer say me - i am offered to a smoking , then what can you say
write a program that takes input in digits and display the result in words from 1 to 1000
How to hide the base class functionality in Inheritance?
Prepare me a program for the animation of train
What are the three parts of a simple empty class?