package one;public class User { private String name; private String password; public User() { } public String getName() { return "用户名:"+name; } public void setName(String name) { this.name = name; } public String getPassword() { return "密码:"+password; } public void setPassword(String password) { this.password = password; } public void Get() { System.out.println(this.getName()); System.out.println(this.getPassword()); } }
添加回答
举报
0/150
提交
取消