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
What is object in oop?
What is a null tree?
Get me an image implementation program.
What is difference between data abstraction and encapsulation?
What is inheritance in simple words?
What is static in oop?
Write a c++ program to display pass and fail for three student using static member function
Why is oop useful?
What is the difference between inheritance and polymorphism?
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.
what type of question are asked in thoughtworks pair programming round ?
How does polymorphism work?
Plese get me a perfect C++ program for railway/airway reservation with all details.
class type to basic type conversion
What is the types of inheritance?