2010年8月22日
摘要: 《illustrate c# 2008》:User-Defined Type Conversions用户定义类型转换User-defined conversions are discussed in greater detail in Chapter 18, but I will mention them here as well because they are operators.用户定义类型... 阅读全文
posted @ 2010-08-22 18:50 菜刀大侠 阅读(389) 评论(0) 推荐(0) 编辑
摘要: Other important facts about class derivation are the following:关于继承类的其他要点如下:• A class declaration can have only a single class listed in its class-base specification. This is called single inheri... 阅读全文
posted @ 2010-08-22 02:03 菜刀大侠 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 《illustrate c# 2008》:All Classes Are Derived from Class object所有的类来自于类objectAll classes, except special class object, are derived classes, even if they don’t have a class-base specification. Cla... 阅读全文
posted @ 2010-08-22 01:51 菜刀大侠 阅读(371) 评论(0) 推荐(0) 编辑
摘要: 《illustrate c#2008》:Figure 7-1 shows an instance of each of the classes. Class SomeClass, on the left, has one field and one method. Class OtherClass, on the right, is derived from SomeClass and conta... 阅读全文
posted @ 2010-08-22 01:34 菜刀大侠 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 《illustrate c#2008》:Inheritance allows you to define a new class that incorporates and extends an already declared class.继承允许你定义一个新的类。这个新的类---包含并且扩展原来已经存在的类。• You can use an existing class, calle... 阅读全文
posted @ 2010-08-22 00:48 菜刀大侠 阅读(347) 评论(0) 推荐(0) 编辑