Slide 1 Our BankAccount class should define three methods deposit withdraw getBalance How a programmer will carry out these operations? We assume that the…