Advertisement
Guest User

Kunde Revised

a guest
Apr 12th, 2013
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class Kunde
  2.     {
  3.         private readonly int _nr;
  4.         private readonly int _tlfNr;
  5.         private readonly double _saldo;
  6.  
  7.         public Kunde(int nr, string navn, string adresse1, string adresse2, int postNr, string by, string email,
  8.                      int tlfnr, double saldo)
  9.         {
  10.             _nr = nr;
  11.             Navn = navn;
  12.             Adresse1 = adresse1;
  13.             Adresse2 = adresse2;
  14.             PostNr = postNr;
  15.             By = by;
  16.             Email = email;
  17.             _tlfNr = tlfnr;
  18.             _saldo = saldo;
  19.  
  20.         }
  21.  
  22.         public int Nr { get { return _nr; } }
  23.         public string Navn { get; set; }
  24.         public string Adresse1 { get; set; }
  25.         public string Adresse2 { get; set; }
  26.         public int PostNr { get; set; }
  27.         public string By { get; set; }
  28.         public string Email { get; set; }
  29.         public int TlfNr { get { return _tlfNr; } }
  30.         public double Saldo { get { return _saldo; } }
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement