方法1:
def funtion1(){
//Code here
}
方法2:
def function2={
//code here
}
実際、これら2つのタイプのメソッドの定義の違いは何ですか...そして、どちらが良いのですか..
方法1:
def funtion1(){
//Code here
}
方法2:
def function2={
//code here
}
実際、これら2つのタイプのメソッドの定義の違いは何ですか...そして、どちらが良いのですか..