I hv a same function name,arguments in both base class and
dervied class, but the return type is different. Can we call
this as a function overloading? Explain?

Answer Posted / ravi kumar noneria

No,
if two functions with same name has either diff no of
argument or same no of arguments but different type is
called function overloading not return type.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a c++ program to display pass and fail for three student using static member function

3087


Why is polymorphism used?

775


What is class and object in oops?

835


What is use of overloading?

858


What is encapsulation selenium?

753


How oops is better than procedural?

830


What makes a language oop?

819


What is meant by multiple inheritance?

937


Why is polymorphism important in oop?

815


What is object and class in oops?

780


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2059


What is destructor in oop?

793


What is overloading in oops?

837


What do you mean by variable?

758


Write a program to sort the number with different sorts in one program ??

2110