Question: Please write the full code! Java language Write a part of the implementation for the class BankAccount. It holds the deposit and partial transfer on

Please write the full code!
Java language Write a part of the implementation for the class BankAccount. It holds the deposit and partial transfer on the account. You have to define one constructer, the method double returnDeposit) which holds the current balance, the method void addIn (double amount) which adds the amount of money to the account, the method boolean takeout double amount) which takes money out of the account if there is enough money on the account (returns true), otherwise does nothing (returns false). The method transactions), which runs once a month and lowers the deposit. The rules are that the first 5 transactions are free, after that are taken 10kr for each transaction.The method has to reset the number of transactions on the account. public class BankAccount f double deposit; double numTransactions; // constructer: //the method returnDeposit: //the method addIn: //the method takeOut: //the method transactions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
