+ 1
Function hiding and delete
Why d.display(1) is not working? I understand that function hiding comes into picture when we define one simillar function in derived class. I have deleted display(int ,int) version so okay to get it disabled from derived class. Why display(int) is still not accesible from derived class even though i have used using display from base ? https://code.sololearn.com/cQrrq3yTOW9T/?ref=app
4 Answers
+ 4
because using is declared into private specifier list (the default in class declaration)
try to add just before the using a public specifier as
public:
using base::display;
+ 3
But still you are answering my questions šš...this is the power of strong community... together we achieve more and better also
+ 1
My bad š¤ ... thanks
+ 1
šš»... Your questions make me thinks that i have to update my knowldgments of c++ standards