A class is a blueprint for objects that bundle state (data) and behaviour (methods) together.
Implement a BankAccount class with:
deposit(amount) method that adds to the balancewithdraw(amount) method that subtracts from the balance (do nothing if amount > balance)getBalance() method that returns the current balanceYour program receives a comma-separated sequence of operations:
start:<n> — create account with balance ndeposit:<n> — deposit nwithdraw:<n> — withdraw nbalance — print the current balanceInput: start:100,deposit:50,withdraw:30,balance
Output: 120
balance operations.