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
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers