コード例 #1
0
        public PoliceCar New(int mileage, bool serviceRequired)
        {
            PoliceCar policeCar = new PoliceCar();
            policeCar.ServiceRequired = serviceRequired;
            policeCar.Mileage = mileage;

            return policeCar;
        }
コード例 #2
0
        public PoliceCar New(int mileage, bool serviceRequired)
        {
            PoliceCar policeCar = new PoliceCar();

            policeCar.ServiceRequired = serviceRequired;
            policeCar.Mileage         = mileage;

            return(policeCar);
        }