Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.text.ParseException;
- public class Utente extends Persona{
- private String numeroAlbo;
- private String specialista;
- public Utente(String nome, String cognome, String dataNascita,
- String luogoNascita, String telefono, String genere,
- String codiceFiscale, String numeroAlbo, String specialista) throws ParseException {
- super(nome, cognome, dataNascita, luogoNascita, telefono, genere, codiceFiscale);
- this.numeroAlbo=numeroAlbo;
- this.specialista=specialista;
- }
- public Utente(String nome, String cognome, String dataNascita,
- String luogoNascita, String telefono, String genere,
- String codiceFiscale, String numeroAlbo) throws ParseException {
- super(nome, cognome, dataNascita, luogoNascita, telefono, genere, codiceFiscale);
- this.numeroAlbo=numeroAlbo;
- this.specialista="generico";
- }
- public String toString(){
- return String.format(nome, cognome, dataNascita, luogoNascita, telefono, genere, codiceFiscale, numeroAlbo, specialista);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement