摘要: 对于单重继承接口的访问,用户可以使用点运算符(.)来访问接口的方法成员,属性成员和事件成员。对于多重继承接口的访问,要使用显示的类型转化来解决这种访问冲突 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace li2_5 { interface I... 阅读全文
posted @ 2016-07-18 13:01 隐逸天涯 阅读(143) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace li2_5 { public class Employee { private double bsalary=1500; private double ... 阅读全文
posted @ 2016-07-18 09:56 隐逸天涯 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.在namespace中的类、接口默认是internal类型的,也可以显示的定义为public类型,不允许是其他访问类型。2.在一个类里面,属性和方法默认是private的,可以显示的定义为public、private、protected、internal或protected internal等访 阅读全文
posted @ 2016-07-18 09:02 隐逸天涯 阅读(173) 评论(0) 推荐(0) 编辑