随笔分类 -  面向对象

摘要:class Dianqi //创建电器类:父类 { private string _Dianqimingzi; public string Dianqimingzi { get { return _Dianqimingzi; }... 阅读全文
posted @ 2015-05-24 10:44 XCml 阅读(236) 评论(0) 推荐(0)
摘要:public class Shengwu { private string _Name; public string Name { get { return _Name; } set { _Name = va... 阅读全文
posted @ 2015-05-24 10:40 XCml 阅读(116) 评论(0) 推荐(0)
摘要:namespace nameclass2{ class Class2 //方法的重载 { public void Function( string s) { Console.WriteLine(s); } pu... 阅读全文
posted @ 2015-05-22 22:08 XCml 阅读(304) 评论(0) 推荐(0)
摘要:namespace 面向对象5_22{ class Animal { private string _Type; public string Type { get { return _Type; } s... 阅读全文
posted @ 2015-05-22 10:43 XCml 阅读(462) 评论(0) 推荐(0)
摘要:namespace wwz{ class Program { struct student { public string name; public int chengji; public in... 阅读全文
posted @ 2015-05-21 21:57 XCml 阅读(198) 评论(0) 推荐(0)