摘要: 方法 构造 public static int add(int a,int b){ return a+b; } 修饰符 返回值类型 方法名(参数类型 参数名){ //方法体 return 返回值; } 重载 方法名相同,参数不同(个数,类型,顺序),返回类型不同 命令行传递参数 main方法的参数 阅读全文
posted @ 2021-03-12 00:44 曹明磊 阅读(46) 评论(0) 推荐(0)