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();
        }
        public override void AddLogic()
        {
            var             boreCar              = new CarPolymorphism("Boremobile", 1990, 0);
            var             mainCar              = new Primary("BMW X6", 2015, 20000);
            var             weekendCar           = new Weekend("Ford mustang", 1965, 160000);
            CarPolymorphism storePrimaryInCarVar = new Primary("Toyota Yaris", 2015, 222);
            CarPolymorphism storeWeekendInCarVar = new Primary("Ferrari 458 Italia Coupe", 2018, 10000);

            string output = "";

            output = boreCar.CarInfo();
            output = boreCar.RoofType();
            output = mainCar.CarInfo();
            output = mainCar.DriveFast();
            output = mainCar.RoofType();
            output = weekendCar.CarInfo();
            output = weekendCar.DriveInStyle();
            output = weekendCar.RoofType();
            output = storePrimaryInCarVar.RoofType();
            output = storeWeekendInCarVar.RoofType();
            this.ReturnsAnswer(output.ToString());
            System.Console.WriteLine(this.ReturnCorrect());
        }