You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Home
Author
Terms
Privacy
About
Tumblr
Pinterest
Enable dark mode
Accessing Inherited Functions
Beeze Aal
30.Jul.2020
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