摘要:
接口是使用 interface 关键字定义的。例如: C# 复制代码 interface IComparable { int CompareTo(object obj); ... 阅读全文
posted @ 2008-07-10 13:16
@雪人
阅读(246)
评论(0)
推荐(0)
|
摘要:
接口是使用 interface 关键字定义的。例如: C# 复制代码 interface IComparable { int CompareTo(object obj); ... 阅读全文
posted @ 2008-07-10 13:16
@雪人
阅读(246)
评论(0)
推荐(0)
摘要:
abstract 修饰符可以和类、方法、属性、索引器及事件一起使用。在类声明中使用 abstract 修饰符以指示某个类只能是其他类的基类。标记为抽象或包含在抽象类中的成员必须通过从抽象类派生的类来实现。 在此例中,类 Square 必须提供 Area 的实现,因为它派生自 ShapesClass: ... 阅读全文
posted @ 2008-07-10 10:48
@雪人
阅读(263)
评论(0)
推荐(0)
|