what is overloading

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


Please Help Members By Posting Answers For Below Questions

what is difference between class template and template class?

2152


What do you mean by overloading?

574


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1646


What is object-oriented programming? Webopedia definition

715


What is abstract class in oops?

593






What is encapsulation in ict?

597


Which type does string inherit from?

608


Why do we use polymorphism?

570


What are oops functions?

576


What is meant by multiple inheritance?

729


What is protected in oop?

598


Why do we use inheritance?

625


What is the problem with multiple inheritance?

578


Explain virtual inheritance?

680


What is the main purpose of inheritance law?

663