2019年5月9日

构造函数有重载功能

摘要: 我们先建立四个构造函数 package ww;public class User { //无参构造方法 public User(){ System.out.println("无参数构造方法"); } //有参数构造方法 public User(int i){ System.out.println(" 阅读全文

posted @ 2019-05-09 20:44 18软工五班龙向昆 阅读(203) 评论(0) 推荐(0) 编辑

导航