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

What is object in oop?

667


What is a null tree?

615


Get me an image implementation program.

1550


What is difference between data abstraction and encapsulation?

604


What is inheritance in simple words?

609






What is static in oop?

579


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

2798


Why is oop useful?

591


What is the difference between inheritance and polymorphism?

577


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

679


what type of question are asked in thoughtworks pair programming round ?

1746


How does polymorphism work?

624


Plese get me a perfect C++ program for railway/airway reservation with all details.

3412


class type to basic type conversion

1826


What is the types of inheritance?

592