Solution Review: Design a Banking Application
Have a look at the solution to the 'Design a Banking Application' challenge.
We'll cover the following...
We'll cover the following...
Account class
Rubric criteria
First, look at the Account class.
Rubric-wise explanation
Point 1:
We create the header of the Account class at line 1.
Point 2:
Initially, we create its private instances: accNo and balance. Next, at line 8, we design its constructor.
Point 3:
Now look at line 15. We create the header of the withdrawal() method. According to the problem statement, it takes an amount of double type: cash. We can only withdraw the money if cash is not , is less than or equal to balance, and is less than or equal to ...