You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your suggestion that it should not be possible to override a protected method with a public method?
If so, I think that will cause problem - in fact we have people like me asking for the opposite:
#471 Permit in implementing class to ignore private methods of implemented interface #3854 Allow interface implementors to implement protected methods #3598
Ah you bring up good points. I'm so used to writing C# where subclasses can't change the accessors of methods it's overriding that I found myself thinking that this might not be intended behaviour.
This will give an error:
This will not:
The text was updated successfully, but these errors were encountered: