public static void Main()
        {
            MotorVehicle mv = new MotorVehicle(100, 200.50M);
            mv.GiveInfo();

            MotorVehicle mv1 = new MotorVehicle(100, 200.50M);
            mv1.GiveInfo();
            Console.WriteLine(mv1.GetHashCode());
        }
 public bool Greater(MotorVehicle v)
 {
     return this.TankVolume > v.TankVolume;
 }
 public MotorVehicle(MotorVehicle mv)
     : this(mv.TankVolume, mv.Price)
 {
 }
 public MotorVehicle(MotorVehicle mv)
     : this(mv.RegNum, mv.TankVolume)
 {
 }
 public bool Greater(MotorVehicle v)
 {
     return (this.tankVolume + (double)this.Price) > (v.TankVolume + (double)v.Price);
 }