示例#1
0
        public void GarNextAdv()
        {
            Console.WriteLine("Where would you like to go next? Please choose Forest | Castle");
            string userInput = Console.ReadLine();
            Forest forest1   = new Forest("miles", 20, false);
            Castle castle3   = new Castle("enormous", 2000, true);

            if (userInput == "Forest")
            {
                forest1.DescribeForest();
            }
            else
            {
                castle3.DescribeCastle();
            }
        }