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 / pankaj shinde

No.
for overloading two methods should be in same class
and not in base & derived class

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where is pseudocode used?

771


How to use CMutex, CSemaphore in VC++ MFC

4559


What is polymorphism explain its types?

944


What is difference between abstraction and encapsulation?

836


What is difference between pop and oop?

841


What is inheritance write a program to show use of inheritance?

912


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2390


Why it is called runtime polymorphism?

817


What are the 5 oop principles?

873


What is oops concept with example?

798


what are the realtime excercises in C++?

2578


Why interface is used?

778


What is debug class?what is trace class? What differences are between them? With examples.

1888


What is and I oop mean?

862


What is oops and its features?

860