Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. public class Utente
  2.     {
  3.         //Implementazione classica
  4.         private string id;
  5.         private string nome;
  6.         private string cognome;
  7.         private int annoIscrizione;
  8.  
  9.         //costruttore
  10.         public Utente(string id, string nome, string cognome, int annoIscrizione)
  11.         {
  12.             this.id = id;
  13.             this.nome = nome;
  14.             this.cognome = cognome;
  15.             this.annoIscrizione = annoIscrizione;
  16.         }
  17.  
  18.         public string denominazione()
  19.         {
  20.             return this.nome + " " + this.cognome;
  21.         }
  22.        
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement