From 267ed40f73114c62012264cf9e776218858e7c53 Mon Sep 17 00:00:00 2001 From: Sherlock-YH Date: Sat, 11 Mar 2023 23:58:07 +0800 Subject: [PATCH 1/2] add Account class --- src/main/java/seedu/bankwithus/Account.java | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/java/seedu/bankwithus/Account.java diff --git a/src/main/java/seedu/bankwithus/Account.java b/src/main/java/seedu/bankwithus/Account.java new file mode 100644 index 0000000000..157b4f0222 --- /dev/null +++ b/src/main/java/seedu/bankwithus/Account.java @@ -0,0 +1,28 @@ +package seedu.bankwithus; + +public class Account { + protected String name; + protected float balance; + + + /** + * @param name initialise in the name of the account + * @param balance initialise the balance of the account + */ + public Account(String name, float balance){ + this.name = name; + this.balance = balance; + } + + /** + * @return returns a string contains the name of the Account + */ + public String getAccountName(){ + return name; + } + + public float getAccountBalance(){ + return balance; + } + +} From 2f75e2bfabfc3a8ecf983b1d5355b0c22b6c87ac Mon Sep 17 00:00:00 2001 From: Sherlock-YH Date: Sun, 12 Mar 2023 00:04:25 +0800 Subject: [PATCH 2/2] Modify EXPECTED.TXT --- text-ui-test/EXPECTED.TXT | 9 --------- 1 file changed, 9 deletions(-) diff --git a/text-ui-test/EXPECTED.TXT b/text-ui-test/EXPECTED.TXT index 892cb6cae7..e69de29bb2 100644 --- a/text-ui-test/EXPECTED.TXT +++ b/text-ui-test/EXPECTED.TXT @@ -1,9 +0,0 @@ -Hello from - ____ _ -| _ \ _ _| | _____ -| | | | | | | |/ / _ \ -| |_| | |_| | < __/ -|____/ \__,_|_|\_\___| - -What is your name? -Hello James Gosling