Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Vehicles.Models
- {
- public class Bus : Vehicle
- {
- public Bus(double fuelQuantity, double fuelConsum, double tankCapacity) : base(fuelQuantity, fuelConsum , tankCapacity)
- {
- }
- public override void Drive(double distance)
- {
- this.FuelConsumption += 1.4;
- base.Drive(distance);
- }
- public void DriveEmpty(double distance)
- {
- base.Drive(distance);
- }
- }
- }
Add Comment
Please, Sign In to add comment