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

class type to basic type conversion

1940


Why do we need polymorphism in c#?

793


write a program that takes input in digits and display the result in words from 1 to 1000

2085


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2039


Can enum be null?

668






What is byval and byref? What are differences between them?

1792


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.

6582


Why is abstraction needed?

652


What is constructor in oop?

691


What is inheritance in simple words?

712


What does and I oop and sksksk mean?

743


is there any choice in opting subjects like 4 out of 7

1822


What is oops concept with example?

658


What is destructor oops?

712


Can an interface inherit a class?

646