随笔分类 -  C#设计模式

摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SharpConsole{ public abstract class People { public abstract void Display(); public abstract void ShowMsg(); } public class Doctor : People { public override void Display() { Console.WriteLine("Doctor Di 阅读全文
posted @ 2013-06-15 17:51 Predator 阅读(184) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Net;usingSystem.IO;usingSystem.Text;usingSystem.Drawing;usingSystem.Text.RegularExpressions; namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){Console.WriteLine("请输入吃饭的类型:");stringmealType= 阅读全文
posted @ 2013-05-05 21:20 Predator 阅读(222) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Collections;usingSystem.Collections.Generic;namespaceConsoleApplication1{classProgram{publicstaticvoidMain(){CatcatJason=newCat("Jason");MousemouseJeck=newMouse("mouseJeck");MousemouseJar=newMouse("mouseJar");catJason.ShutHandler+=newCat.ShutEven 阅读全文
posted @ 2013-05-05 13:58 Predator 阅读(195) 评论(0) 推荐(0)
摘要:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceAccountManager{classAccount{publicAccount(){ }publicAccount(stringname,stringaccount){this.Name=name;this.AccountNumber=account;}publicstringName{get;set;}publicstringAccountNumber{get;set;}}}usingSystem;usingSyst 阅读全文
posted @ 2013-04-23 23:07 Predator 阅读(488) 评论(0) 推荐(0)