Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Utente
- {
- //Implementazione classica
- private string id;
- private string nome;
- private string cognome;
- private int annoIscrizione;
- //costruttore
- public Utente(string id, string nome, string cognome, int annoIscrizione)
- {
- this.id = id;
- this.nome = nome;
- this.cognome = cognome;
- this.annoIscrizione = annoIscrizione;
- }
- public string denominazione()
- {
- return this.nome + " " + this.cognome;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement