摘要:
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 字符串的简单练 阅读全文
摘要:
先把整体UI建好 1 分析需要个计算的基类,一个构造函数,两个属性,一个方法 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Ta 阅读全文
摘要:
一以贯之 :把子类看作父类,统一看待 假设用户输入一个电脑品牌,判断该品牌是否存在 1 定义一个抽象"电脑类" using System; using System.Collections.Generic; using System.Linq; using System.Text; using Sy 阅读全文
摘要:
下面主要学习一下单例设计模式 首先,先看一个现象,当用户点击"登录"按钮,会弹出"登录对话框",但是当用户多次点击时,会new很多对话框.所以我们需要对代码进行改造 1.1 构造函数私有化 private Login() 1.2 声明静态字段 public static Login _single; 阅读全文