Use Java
Write full code for the classes represented in the UML diagram below. Keep the methods as short as possible.
Bank Account
#balance: double
+BankAccount()
+BankAccount(acctBalance: double)
+deposit (amount: double): void
+withdraw (amount: double): void
+getBalance() : double
^
|
SavingsAccount
-interestRate: double
+SavingsAccount()
+SavingsAccount(acctBalance: double, rate: double)
+addInterest: void
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here