示例#1
0
        public override bool Equals(object obj)
        {
            InitialStep step = obj as InitialStep;

            if (!base.Equals(obj))
            {
                return(false);
            }
            else if (step == null)
            {
                return(false);
            }
            else if (!step._drinkName.Equals(_drinkName))
            {
                return(false);
            }
            return(true);
        }
示例#2
0
        public override object Clone()
        {
            InitialStep step = new InitialStep(_drinkName, _glassName);

            return(CopyValuesToClone(step));
        }