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
class type to basic type conversion
Why do we need polymorphism in c#?
write a program that takes input in digits and display the result in words from 1 to 1000
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?
Can enum be null?
What is byval and byref? What are differences between them?
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.
Why is abstraction needed?
What is constructor in oop?
What is inheritance in simple words?
What does and I oop and sksksk mean?
is there any choice in opting subjects like 4 out of 7
What is oops concept with example?
What is destructor oops?
Can an interface inherit a class?