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
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 data binding in oops?
What is a class oop?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
How can you overcome the diamond problem in inheritance?
What is the difference between encapsulation and polymorphism?
What are constructors in oop?
What is polymorphism give a real life example?
What is polymorphism what is it for and how is it used?
Why is object oriented programming so hard?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is protected in oop?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is the difference between a mixin and inheritance?
What does enum stand for?