public bool LoadFuel(Fuel fuel)
 {
   if (!(fuel is Gasoline))
     return false;
   tank = fuel as Gasoline;
   return true;
 }
Beispiel #2
0
 public bool LoadFuel(Fuel fuel)
 {
     if (!(fuel is Gasoline))
     {
         return(false);
     }
     tank = fuel as Gasoline;
     return(true);
 }