Hackerrank
Hackerrank Accessing Inherited Functions Solution
You are given three classes A, B and C. All three classes implement their own version of func. In class A, func multiplies the value passed as a parameter by : class A { public: A(){ callA = 0; } private: int callA; void inc(){ callA++; } protected: void func(int & a) { a = a