Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 2 (Q.No. 13)
13.
A function in a derived class that has the same name as a function in the parent class
will override the base class function
will cause an error message to display
will be overridden by the base class function
will execute immediately often the base class function executes
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

Amr Elghadban said:   1 decade ago
I think it will be a new function. Becuse to over ride it you must use the same function signature. Not only name. So if you just use the same name in base class to declare function in drived class it will be simple new function. Not overriding or even overloading.

Post your comments here:

Your comments will be displayed after verification.