24 lines
445 B
Java
24 lines
445 B
Java
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;
|
|
}
|
|
}
|