Пример #1
0
 public void Return(Vehicle somevehicle)
 {
     Inventory.inventory += 1;
     //total net income
     //totalnetincme - somevehicle.price;
     somevehicle.location = "return desk";
 }
Пример #2
0
        static void Main(string[] args)
        {
            Vehicle car = new Vehicle(2, "blue");
            car.SetSalesDiscount(.1);
            double p = car.FinalSalesPrice(2);

            Vehicle bike = new Vehicle(4, "black");
            double pp = bike.FinalSalesPrice(1);
            bike.Return(bike);
        }