Пример #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="colleague"></param>
        public override void Common(string type)
        {
            switch (type)
            {
            case "单间":
                SmallHouse.Handle();
                Console.WriteLine("如果可以就可以租房了!");
                break;

            case "两居室":
                TwoHouse.Handle();
                Console.WriteLine("如果可以就可以租房了!");
                break;

            case "三居室":
                ThreeHouse.Handle();
                Console.WriteLine("如果可以就可以租房了!");
                break;

            default:
                Console.WriteLine($"{type}暂时没有房源!");
                break;
            }
        }