In-depth method (6)-Result

// Point 6: Result can participate in the operation, "Function Name" cannot 
function MyFun (x, y: Integer): Integer;
 begin 
  Result: = x + y; 
  Result: = Result * 2 ;
 end ;

 

Guess you like

Origin www.cnblogs.com/fansizhe/p/12729683.html