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 protected in oop?
What is overloading in oop?
How to improve object oriented design skills?
what are the realtime excercises in C++?
Why do we need 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.
What is polymorphism explain?
Why is there no multiple inheritance?
Why is oop better than procedural?
Write a program to sort the number with different sorts in one program ??
What is overriding vs overloading?
What is the full form of oops?
How do you use inheritance in unity?
What is abstraction encapsulation?
Why interface is used?