class Persona { // Attributi private String nome; private String indirizzo; private int civico; private String telefono; // Costruttore public Persona(String nome, String indirizzo, int civico, String telefono) { this.nome = nome; this.indirizzo = indirizzo; this.civico = civico; this.telefono = telefono; } // Metodi di impostazione della classe Persona public void impostaNome(String nome) { this.nome = nome; } public void impostaDomicilio(String indirizzo, int civico) { this.indirizzo = indirizzo; this.civico = civico; } public void impostaTelefono(String telefono) { this.telefono = telefono; } // Metodi di interrogazione della classe Persona public String restituisciNome() { return this.nome; } public String restituisciIndirizzo() { return this.indirizzo; } public int restituisciCivico() { return this.civico; } public String restituisciTelefono() { return this.telefono; } }