Assume you have a class that defines virtual methods with the access specifier public.
Can you change the access specifier on your overriden methods?
I am assuming no.
Looking for an explanation.
Assume you have a class that defines virtual methods with the access specifier public.
Share
Yes you can, but it “doesn’t grok”.
Take a look at Overriding public virtual functions with private functions in C++