示例#1
0
        public IAuto CreateLuxuryCar()
        {
            var auto = new Toyota();
            auto.AddLuxuryPackage();

            return auto;
        }
示例#2
0
        public IAuto CreateSportsCar()
        {
            var auto = new Toyota();
            auto.AddSportsPackage();

            return auto;
        }
示例#3
0
        public IAuto CreateEconomyCar()
        {
            var auto = new Toyota();
            auto.AddEconomyPackage();

            return auto;
        }