![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 78
zhangqiang0921
这个作者很懒,什么都没留下…
展开
-
总结:C#语法——继承、虚拟、多态、实例化
<br />using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ public class Parent { public void MethodParent() { Console.WriteLine("0.调用parent的Met原创 2010-10-27 21:54:00 · 1165 阅读 · 0 评论 -
总结:C#语法系列——构造函数
using System;using System.Collections.Generic;using System.Text;namespace ConsoleApplication1{ class parent { public static string str = "parent类的static静态字段"; //静态构造函数前不能有访问限制符。 //在 类被实例化、访问类的静态成员 时会自动调用静态构造原创 2010-10-27 21:10:00 · 1339 阅读 · 0 评论 -
俄罗斯方块小游戏显示当前分数利用到的委托、事件
最近做的一个俄罗斯方块的游戏,在逻辑画布类中计算出目前的得分和速度等级,把结果及时的在界面类中显示出来,其中用到了委托、事件,并对此做了一下了解,代码如下: /// /// 传递的数据参数类 /// public class LevelChangeEventArgs : EventArgs { private int Level; private int Score; public LevelChan原创 2010-10-30 00:21:00 · 873 阅读 · 0 评论