Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Hospital extends Estabelecimento {
- BancoDeDados bd = new BancoDeDados();
- public Hospital (){
- super(nome,cgc, endereco, especialidade, cod_medico);
- }
- public Hospital(String nome, int cgc, String endereco,String especialidade){
- //super(nome,cgc,endereco,especialidade);
- public void cadastrar(String nome, int cgc, String endereco,String especialidade,int cod_medico){
- this.(nome, cgc, endereco, especialidade, cod_medico);
- // System.out.println(this.getNome()+" "+ this.getCgc()+" "+ this.getEndereco()+" "+ this.getEspecialidade()+" "+this.getCod_medico());
- //bd.cadastrarHospital(this.getNome(), this.getCgc(), this.getEndereco(), this.getEspecialidade(),this.getCod_medico());
- }
- /*public float emitirFatura(){
- return 0;
- }*/
- public void remover(int cgc){
- System.out.println("ai ser removido "+cgc);
- }
- public void alterar(){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement