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 graphics
How many human genes are polymorphic?
#include
What do you mean by variable?
What is property in oops?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
What is abstraction in oop?
Why do we need polymorphism in c#?
What are the data types in oop?
What is the difference between procedural programming and oops?
What exactly is polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
#include
What are the benefits of interface?
What is the advantage of oop over procedural language?