Controlling whether subclasses can or cannot override members