public override void AddLogic() { var s = new StudentPolymorphism3("Marlow"); var x = s.SayHello(); s.Enlarge(); var y = s.SayHello(); s.Shrink(); var z = s.SayHello(); this.ReturnsAnswer(z.ToString()); System.Console.WriteLine(this.ReturnCorrect()); }
public override void AddMainLogic() { X xInstance = new X(); xInstance.AddLogic(); Compute computeInstance = new Compute(); computeInstance.AddLogic(); StudentPolymorphism studentPolymorphismInstance = new StudentPolymorphism(); studentPolymorphismInstance.AddLogic(); Simple simpleInstance = new Simple(); simpleInstance.AddLogic(); X_h x_hInstance = new X_h(); x_hInstance.AddLogic(); Person personInstance = new Person(); personInstance.AddLogic(); Shape shapeInstance = new Shape(); shapeInstance.AddLogic(); Tool toolInstace = new Tool(); toolInstace.AddLogic(); A aInstance = new A(); aInstance.AddLogic(); CarPolymorphism carInstance = new CarPolymorphism(); carInstance.AddLogic(); StudentPolymorphism3 studentPolymorphism3Instance = new StudentPolymorphism3(); studentPolymorphism3Instance.AddLogic(); Fighter fighterInstance = new Fighter(); fighterInstance.AddLogic(); }