java中类的定义 java中函数的声明和定义?
java中函数的声明和定义?Access modifier return value type function name(parameter type parameter name){functio
java中函数的声明和定义?
Access modifier return value type function name(parameter type parameter name){function body}例如,public void setXXX(string a){//没有返回值this的无参数函数。A=A}public string getxxx(string A){//parameterless function with return value return A}public void setxxx(){//parameterless function without return value string this无参数函数。A=A}公共字符串Getxxx(){//返回值为字符串A=“”的非参数函数return A}