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; + } + +}