摘要:
原型模式的目的是: 将用户与构造函数隔离,通过拷贝生成新对象。 实例代码: [Serializable] class Person : ICloneable //定义Person类 { private string _name; //姓名 private int _age; //年龄 private string _sex; //性别 privat... 阅读全文
posted @ 2007-09-18 08:26 AlanPaoPao 阅读(129) 评论(0) 推荐(0)
浙公网安备 33010602011771号