I want use method of base class when my derived class has method with the same name but with different arguments.
If I just try to call base method I've got a compile time error:
> *.cpp: In function 'int main()':
> *.cpp:25:11: error: no matching function for call to 'Derived::foo()'
> *.cpp:13:7: note: candidate: 'void Derived::foo(int)'
> void foo(int c)
> *.cpp:13:7: note: candidate expects 1 argument, 0 provided
> Compilation failed.
Here is code:
struct Derived : public Base
void foo(int c)
So how to access the base method if derived method is hiding the base one?
Using syntax `[OBJECT].[BASE_CLASS]::[METHOD]`
Try in [repl.it](https://repl.it/@paxcodes/cplusplusta1170)