Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1.         public class Utente
  2.     {
  3.         /*
  4.         Versione alternativa della classe Utente.
  5.         Questa versione fa uso delle property per
  6.         la defizione degli attributi e dei metodi
  7.         setter e getter.
  8.          */
  9.         public string Id {get; set;}  
  10.         public string Nome {get; set;}
  11.         public string Cognome {get; set;}    
  12.         public int AnnoIscrizione {get; set;}
  13.        
  14.         public string Denominazione
  15.         {
  16.             get {return Nome + " " + Cognome;}          
  17.         }
  18.        
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement