SHARE
TWEET

Gerente.java

Welton May 20th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Gerente extends Funcionario {
  2.     private int senha;
  3.  
  4.     public void setSenha(int senha) {
  5.         this.senha = senha;
  6.    
  7.     }
  8.    
  9.     public boolean autentica(int senha) {
  10.         if (this.senha == senha) {
  11.             return true;
  12.         } else {
  13.             return false;
  14.         }
  15.     }
  16.  
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top