2017年5月14日

方法重载演示

摘要: public class DemoTest { // add(int,int)方法签名=方法名+参数列表 // 在Java中不可能出现方法签名相同的两个方法 public int add(int a, int b) { System.out.println("返回int类型"); return a 阅读全文

posted @ 2017-05-14 19:04 嘛哩嘛哩冯丶 阅读(103) 评论(3) 推荐(0) 编辑

导航