public override void AddLogic() { StudentPolymorphism s1 = new StudentPolymorphism(); StudentPolymorphism s2 = new StudentPolymorphism(90); StudentPolymorphism s3 = new StudentPolymorphism("Amit", 88, 60); string output1 = "Subject One Marks: " + s1.GetSubjectOneMarks(); string output2 = "Subject One Marks: " + s2.GetSubjectOneMarks(); string output3 = "Student name: " + s3.GetStudentName(); string output4 = "Subject One Marks: " + s3.GetSubjectOneMarks(); string output5 = "Subject Two Marks: " + s3.GetSubjectTwoMarks(); this.ReturnsAnswer(output2.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(); }