在C#中,当您实现接口时,所有成员都是隐式公共的.那岂不是更好,如果我们可以指定可访问修饰符(protected,internal,除了private当然的),或者我们应该使用抽象类呢?
protected
internal
private
.net c# interface
.net ×1
c# ×1
interface ×1