Select from following answers:- Derived foo(int)Base foo(int)
- Derived foo(int)
- Base foo(int)
- Base foo(int)Derived foo(int)
- All Above
The class Base has a virtual method foo which is not overriden in the class Dervied. The keyword override is not a mandatory keyword that needs to be associated with the foo method in the Derived class. Hence the output is Derived foo(int)
Show Correct Answer
Source: Interview | Asked In: Many Interviews |
Alert Moderator