委派的方式有三種具名函式、匿名函式、Lambda運算式。 具名函式: 將已宣告的方法( nameMethod )指給委派. 匿名函式: delegate (arguments) { statements }.
確定! 回上一頁