SHOW:
|
|
- or go back to the newest paste.
1 | - | using System; |
1 | + | |
2 | namespace AccountQuery | |
3 | { | |
4 | public class Customer | |
5 | - | public class Account : IAccount |
5 | + | |
6 | private int pin; | |
7 | - | /* |
7 | + | public int Pin |
8 | - | * CustomerAccount method that prints the current balance |
8 | + | |
9 | - | */ |
9 | + | get { return pin; } |
10 | - | public void printBalance() |
10 | + | set { pin = value; } |
11 | // ein Getter für ne PIN ist irgenwie unsicher..... :D | |
12 | - | Console.WriteLine("Der aktuelle Kontostand beträgt 2000 EUR"); |
12 | + | |
13 | - | // wieso beträght der Kontostand scheinbar IMMER 2000 Euro?! Ich will auch so'n Konto!! |
13 | + | |
14 | public Customer(int pin) | |
15 | { | |
16 | this.pin = pin; | |
17 | ||
18 | } | |
19 | } | |
20 | } |