Homework #4
- Goal: Learning the concept of private members and how they are
used.
- Please send your homework (ZIP or RAR file) to TA at
cs101-ta@voip.edu.tw
- Deadline: 2008/3/21 11:00 AM
- Define a class "Account" which has three public functions "withdraw", "deposit", "checkBalance" and a private variable "balance".
Initialize your accnount's balance to zero.
Your account's balance is accessed by the functions of the class "Account" only.
Your balance can not be negative.
You can choose what functions you want to do before you exit.