Example #1
0
        public Mocha(Beverage beverage)
        {
            _beverage = beverage;

            // 这里就把Description设置了? 这样会变为静态?
            _strDescription = _beverage.getDescription() + ", Mocha";
        }
Example #2
0
        public Mocha(Beverage beverage)
        {
            _beverage = beverage;

            // 这里就把Description设置了? 这样会变为静态?
            _strDescription = _beverage.getDescription() + ", Mocha";
        }
Example #3
0
 public override string getDescription()
 {
     return(_beverage.getDescription() + ", Soy");
 }
Example #4
0
        public Whip(Beverage beverage)
        {
            _beverage = beverage;

            _strDescription = _beverage.getDescription() + ", Whip";
        }
Example #5
0
        public Whip(Beverage beverage)
        {
            _beverage = beverage;

            _strDescription = _beverage.getDescription() + ", Whip";
        }