Question: Create a class named BankAccount that includes two numeric variables: a bank balance and an interest rate. Also create two overloaded methods named computeInterest(). The
Create a class named BankAccount that includes two numeric variables: a bank balance and an interest rate. Also create two overloaded methods named computeInterest(). The first method takes two numeric arguments representing balance and rate, multiplies them, and then displays the results. The second method takes a single argument representing balance. When this method is called, the interest rate is assumed to be 1.5 percent and the results are displayed.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
