コード例 #1
0
        private void OnBuilderMediumCommand(object obj)
        {
            Construct(_mediumCar);

            CarProductModel medium = _mediumCar.GetCar();

            medium.Display();
        }
コード例 #2
0
        private void OnBuilderLuxuryCommand(object obj)
        {
            Construct(_luxuryCar);

            CarProductModel luxury = _luxuryCar.GetCar();

            luxury.Display();
        }
コード例 #3
0
        private void OnBuilderNormalCommand(object obj)
        {
            Construct(_normalCar);

            CarProductModel normal = _normalCar.GetCar();

            normal.Display();
        }