java构造方法用private和public修饰的区别2019年12月2日 · 阅读需 2 分钟MeooAn unknown student示例代码:在这里用private修饰无参数的构造器,用public修饰有参数的构造器。