CoreJava/exp11/Account.java

24 lines
445 B
Java
Raw Normal View History

2024-05-15 20:49:31 +08:00
package exp11;
public class Account {
private String username;
private String password;
public Account(String username, String password) {
this.username = username;
this.password = password;
}
String getUserName() {
return this.username;
}
String getPassword() {
return this.password;
}
public String toString() {
return this.username +"," +this.password;
}
}