/// <summary>
 /// 构造函数,父类具有相同的构造形式,直接将父类的构造参数传入进行初始化
 /// </summary>
 /// <param name="strObj"></param>
 public ConcreteDecorator_AddRSS(ComponentString strObj)
     : base(strObj)
 {
 }
Beispiel #2
0
 /// <summary>
 /// 构造函数,对其私有成员赋值
 /// </summary>
 /// <param name="strObj"></param>
 public DecoratorNews(ComponentString strObj)
 {
     this.obj = strObj;
 }