<分区>
Possible Duplicate:
Is there a reason you can not define the access modifier on a method or in an interface?
你好,
我对接口(interface)很好奇。假设我有以下接口(interface)的定义
public interface IPersone
{
string FirstName { get; set; }
string LastName { get; set; }
int CalculateAge(int YearOfBirth);
}
为什么定义接口(interface)的方法和属性前面没有修饰符(public、private、protected)?有什么理由吗?
感谢帮助