結果 : define and differentiate between state function and path function giving suitable examples