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

What are the important components of cohesion?

771


which feature are not hold visual basic of oop?

1961


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.

968


How do you define a class in oop?

880


What is polymorphism explain its types?

942


What is the important feature of inheritance?

877


What type of loop is a for loop?

877


Why do we use class?

835


Advantage and disadvantage of routing in telecom sector

1052


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

3111


How to hide the base class functionality in Inheritance?

875


What is encapsulation in simple terms?

783


officer say me - i am offered to a smoking , then what can you say

1864


What is the renewal class?

2437


Can you inherit a private class?

860