Is there ever a reason to hide inherited members in an interface?

后端 未结 5 1682
孤独总比滥情好
孤独总比滥情好 2020-12-30 04:56

I understand that a class which inherits from another class may hide a property by using the new keyword. This, however, is hiding a specific implementation of

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 05:41

    I suppose if you were going to implement IChildInterface explicitly there might be a case where you'd want to hid PropertyA (maybe?)

提交回复
热议问题