what is overloading
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / laxmi reddy
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.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / gaurav pathak
the function overloading is ablity to make more then one
function of same name.compiler identifies which function is
called by making the comparision of function arguments.
| Is This Answer Correct ? | 1 Yes | 0 No |
swapping program does not use third variable
what are the ways in which a constructors can be called?
What are the benefits of interface?
What does the code "cout<<(0==0);" print? 1) 0 2) 1 3) Compiler error: Lvalue required
write a c++ code of diagonal matrix.
What is abstraction encapsulation?
What is purpose of inheritance?
i have to create a view in SQL as like in ORACLE DATA EXPRESS EDITION
why the argument is passed by reference to a copy constructor?example?
What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5
What is class and object with example?
explain defference between structure and class with example