Beispiel #1
0
        /*
         * Overridden Member Methods
         */

        public override object Clone()
        {
            // create the clone object
            ApplianceExplanation expl = new ApplianceExplanation();

            // call the cloneHelper
            cloneHelper(expl);

            // return the clone
            return(expl);
        }
Beispiel #2
0
 /// <summary>
 /// This method helps in the cloning process by allowing each
 /// class in the hierarchy to clone their own member variables.
 /// The class being cloned will create a new instance of itself,
 /// and then call the cloneHelper in its super-class to get any
 /// member variables of its super classes to be copied.
 /// </summary>
 /// <param name="clone">the instance of the cloned object</param>
 protected void cloneHelper(ApplianceExplanation clone)
 {
     base.cloneHelper(clone);
 }