Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package matador_BusinessLogic;
- public class Konto {
- public static void main (String[] args)
- {
- int konto;
- Konto Spiller_konto_1 = new Konto ("Spiller 1", 10000);
- private long Kontonummer;
- private double balance;
- private String Spiller;
- public Konto (String owner, long konto, double initial)
- {
- Spiller = owner;
- Kontonummer = konto;
- balance = initial;
- }
- public double deposit (double amount)
- {
- balance = balance + amount;
- return balance;
- }
- public double withdraw (double amount)
- {
- balance = balance - amount;
- return balance;
- }
- }
Add Comment
Please, Sign In to add comment