12.07.2015 Views

k19-k11-orientacao-a.. - Departamento de Sistemas e Computação

k19-k11-orientacao-a.. - Departamento de Sistemas e Computação

k19-k11-orientacao-a.. - Departamento de Sistemas e Computação

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RESPOSTAS 20227 }28 }Código Java 8.32: TestaFuncionarios.javaResposta do Complementar 9.11 class Funcionario {2 private int codigo ;34 // GETTERS AND SETTERS5 }Código Java 9.13: Funcionario.javaResposta do Complementar 9.21 class Gerente extends Funcionario {2 private String usuario ;3 private String senha ;45 // GETTERS AND SETTERS6 }Código Java 9.14: Gerente.java1 class Telefonista extends Funcionario {2 private int ramal ;34 // GETTERS AND SETTERS5 }Código Java 9.15: Telefonista.javaResposta do Complementar 9.31 class ControleDePonto {23 public void registraEntrada ( Funcionario f) {4 SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/ yyyy HH:mm:ss");5 Date agora = new Date ();67 System . out . println (" ENTRADA : " + f. getCodigo ());8 System . out . println (" DATA : " + sdf . format ( agora ));9 }1011 public void registraSaida ( Funcionario f) {12 SimpleDateFormat sdf = new SimpleDateFormat ("dd/MM/ yyyy HH:mm:ss");13 Date agora = new Date ();1415 System . out . println (" SAÍDA : " + f. getCodigo ());202 www.<strong>k19</strong>.com.br

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!