C++ quick tips: Overloaded virtual functions
Let’s suppose that you’re working with a virtual interface defined as follows:
|
|
Now, let’s have a class A
that implements this interface:
|
|
So far so good. Now, let’s say you want to add an overloaded version of
process
in class B. This would look like so:
|
|
An attempt to use this class’s original interface like so: