public Manager() {
System.out.println("An " + Manager.class + " has been created!");
}
public boolean autentication(int password) {
return this.password == password;
}
public Manager() {
System.out.println("An " + Manager.class + " has been created!");
}
public boolean autentication(int password) {
return this.password == password;
}
Muito bom Edward, sua lógica ficou ainda melhor :)
public boolean autentica(int senha) {
if (this.senha == senha) {
return true;
} else {
return false;
}
}