Answer Posted / rajveer
c++ provide 2types of overloading.
1. Function overloading:- When we create more then 1
function as same name(like Sum)then it's overloading.
this types overloading in perameters are deffrent becouse
compiler is not know which function called. so sum(),sum
(int,int),sum(int float)etc.
2. operatore overloading:- in c++ operatore(+,-,/ etc.)
worked only builtin datatype. but we can use operatore in
user defined data type by operatore overloading.
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is solid in oops?
Why do we use inheritance?
Get me an image implementation program.
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What are properties in oop?
What is oops and why we use oops?
What is difference between abstraction and encapsulation?
What are the benefits of interface?
What is encapsulation oop?
What is difference between multiple inheritance and multilevel inheritance?
What is a class oop?
What is super in oop?
Why do we use encapsulation in oops?
Why do we need oop?
Why it is called runtime polymorphism?