13.02.2025
This commit is contained in:
parent
70e5974226
commit
82bdd728c3
6 changed files with 223 additions and 0 deletions
14
src/de/dhbwka/java/exercise/classes/AccountTest.java
Normal file
14
src/de/dhbwka/java/exercise/classes/AccountTest.java
Normal file
|
@ -0,0 +1,14 @@
|
|||
package de.dhbwka.java.exercise.classes;
|
||||
|
||||
public class AccountTest {
|
||||
public static void main(String[] args) {
|
||||
Account account = new Account(4711, "Donald Duck", 500, 1000);
|
||||
System.out.println(account);
|
||||
account.processDeposit(200);
|
||||
System.out.println(account);
|
||||
account.processPayment(400);
|
||||
System.out.println(account);
|
||||
account.processPayment(2000);
|
||||
System.out.println(account);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue