Professional Documents
Culture Documents
CS Unit 9 Assignment #3
CS Unit 9 Assignment #3
Written Exercises:
TRUE/FALSE
7.9 a polymorphic reference variable can refer to different types of objects at different
times.
True
Construct the account with the interest rate of the account, the number of months to
maturity (number of months the money must remain in the account before it can be
withdrawn), and the penalty that will be charged (amount of money).
In the endOfMonth method, decrement the count of months. If the count is positive
during a withdrawal, charge the withdrawal penalty. There is no penalty for depositing
money into the account.
Tester HERE
b.
MULTIPLE CHOICE Question #3
d.
There is no default constructor for x, and the constructor there is cannot be called
because the arguments were not specified in y.