- 博客(9)
- 收藏
- 关注
原创 My Composite in C#
//MyCompositeusing System;using System.Collections;//----------------------------------Class FileElementabstract class CFileElement{ //Fields protected string name; public CFileElement(string name)
2004-08-16 21:40:00
1134
原创 My Bridge in C#
//MyBridgeusing System;//-------------------------------------------------Class Manager//parent classabstract class Manager{ //Method:KickOut abstract public void KickOut();};//sonclass1:Female
2004-08-16 21:36:00
1084
1
原创 My Adapter in C#
//MyAdapterusing System;//Class1class SimpleDrawer{ //Methods virtual public void SetColor(string name){}};//Adapter Class which enables class1 to use class2 methodsclass AssistantDrawer:SimpleDrawer{
2004-08-10 20:37:00
1099
2
原创 My Singleton in C#
//MySingletonusing System;//SingletonPage Classclass SingletonPage{ //Fields protected static SingletonPage checkoutpage; //Constructor is protected to ensure Singleton protected SingletonPage() {
2004-08-04 20:54:00
1231
5
原创 My Prototype in C#
//MyPrototypeusing System;using System.Collections;//abstract PageStylePrototype Class Prototypeabstract class PageStylePrototype{ //Fields protected string stylestring; //Properties public string
2004-08-04 20:05:00
1118
1
原创 My FactoryMethod in C#
//MyFactoryMethodusing System;using System.Collections;//SinglePage class,which build the at last product,part element//----top classabstract class SinglePage{};//----element1class RegisterPage:Single
2004-08-04 17:48:00
1053
原创 My Builder in C#
//MyBuilderusing System;using System.Collections;///////////////////////product///////////////////////class HomePage{ //Fields private string pagetype; private string samplecode; private Hashtable p
2004-08-04 15:46:00
1019
原创 My AbstractFactory in C#
//MyAbstractFactoryusing System;///////////////Basic Products//////////////// //AbstractProductsabstract class FontsStyle{ public string stylestring; };abstract class TablesStyle{ public string st
2004-08-04 15:28:00
928
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人