Assignment2.Enterprise.LoadFuel C# (CSharp) Method

LoadFuel() public method

public LoadFuel ( Fuel fuel ) : bool
fuel Fuel
return bool
    public bool LoadFuel(Fuel fuel)
    {
      if (!(fuel is Dilithium))
        return false;
      tank = fuel as Dilithium;
      return true;
    }