157. Polymorphism-ii

Question.8

A developer writes two implementations of the same algorithm:

Implementation A:

void log(int val);         // Overload 1
void log(const char* msg); // Overload 2

Implementation B:

class ILogger {
public:
   virtual void log(const char* msg) = 0;
};

Which type of polymorphism does each use?

Need Help? Refer to the Quick Guide below

Select Answer