SHOW:
|
|
- or go back to the newest paste.
| 1 | public class Kunde | |
| 2 | - | namespace KundeOplysninger |
| 2 | + | |
| 3 | - | {
|
| 3 | + | private readonly int _nr; |
| 4 | private readonly int _tlfNr; | |
| 5 | private readonly double _saldo; | |
| 6 | - | private readonly int nr; |
| 6 | + | |
| 7 | - | private string navn; |
| 7 | + | public Kunde(int nr, string navn, string adresse1, string adresse2, int postNr, string by, string email, |
| 8 | - | private string adresse1; |
| 8 | + | |
| 9 | - | private string adresse2; |
| 9 | + | |
| 10 | - | private int postnr; |
| 10 | + | _nr = nr; |
| 11 | - | private string by; |
| 11 | + | Navn = navn; |
| 12 | - | private string email; |
| 12 | + | Adresse1 = adresse1; |
| 13 | - | private readonly int _tlfnr; |
| 13 | + | Adresse2 = adresse2; |
| 14 | PostNr = postNr; | |
| 15 | By = by; | |
| 16 | - | public Kunde(int nr, string navn, string adresse1, string adresse2, int postnr, string by, string email, |
| 16 | + | Email = email; |
| 17 | - | int _tlfnr, double _saldo) |
| 17 | + | _tlfNr = tlfnr; |
| 18 | _saldo = saldo; | |
| 19 | ||
| 20 | - | this.nr = nr; |
| 20 | + | |
| 21 | - | this.navn = navn; |
| 21 | + | |
| 22 | - | this.adresse1 = adresse1; |
| 22 | + | public int Nr { get { return _nr; } }
|
| 23 | - | this.adresse2 = adresse2; |
| 23 | + | public string Navn { get; set; }
|
| 24 | - | this.postnr = postnr; |
| 24 | + | public string Adresse1 { get; set; }
|
| 25 | - | this.by = by; |
| 25 | + | public string Adresse2 { get; set; }
|
| 26 | - | this.email = email; |
| 26 | + | public int PostNr { get; set; }
|
| 27 | - | this._tlfnr = _tlfnr; |
| 27 | + | public string By { get; set; }
|
| 28 | - | this._saldo = _saldo; |
| 28 | + | public string Email { get; set; }
|
| 29 | public int TlfNr { get { return _tlfNr; } }
| |
| 30 | public double Saldo { get { return _saldo; } }
| |
| 31 | - | public int Getnr() |
| 31 | + | } |