Suppose I have a class with a protected virtual function
class Super
{
protected:
virtual void Func() {}
};
You inherit publicly from this class and override Func, but now in the public section.
class Sub : public Super
{
public:
virtual void Func() {}
};
Has the access modifier changed then or can't you change those?