/// <summary> /// Create a copy of this cypher instance. /// </summary> /// <returns>A copy of the cypher instance, including the current encryption key.</returns> public override AbsASTPCypher Clone() { RightShiftCypher r = (this.MemberwiseClone() as RightShiftCypher); r.shift = 1; System.Console.WriteLine("\t\t\tRightShiftCypher.Clone: Made a new copy with shift = " + r.shift); return(r); }
private ASTPFactory() { left = new LeftShiftCypher(); right = new RightShiftCypher(); }