Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1.     public class Hospital extends Estabelecimento {
  2.     BancoDeDados bd = new BancoDeDados();
  3.    
  4.     public Hospital (){
  5.     super(nome,cgc, endereco, especialidade, cod_medico);  
  6.    
  7.     }
  8.     public Hospital(String nome, int cgc, String endereco,String especialidade){
  9.         //super(nome,cgc,endereco,especialidade);
  10.    
  11.    
  12.     public void cadastrar(String nome, int cgc, String endereco,String especialidade,int cod_medico){
  13.         this.(nome, cgc, endereco, especialidade, cod_medico);
  14.     //  System.out.println(this.getNome()+" "+ this.getCgc()+" "+ this.getEndereco()+" "+ this.getEspecialidade()+" "+this.getCod_medico());
  15.         //bd.cadastrarHospital(this.getNome(), this.getCgc(), this.getEndereco(), this.getEspecialidade(),this.getCod_medico());
  16.     }
  17.    
  18.     /*public float emitirFatura(){
  19.         return 0;
  20.     }*/
  21.    
  22.     public void remover(int cgc){
  23.        
  24.    
  25.         System.out.println("ai ser removido "+cgc);
  26.     }
  27.     public void alterar(){
  28.        
  29.     }
  30.    
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement