Title Throw IllegalArgumentException in SavingsAccount constructor
Catalog Type SLCItem
Persistent ID https://codecheck.io/files/horstmann/codecheck-bj-4-io-103
Platform Name CodeCheck
Features Code Completion
Description The SavingsAccount class given below is similar to that of Chapter 9. It should be illegal to construct savings accounts with a negative balance or interest rate. Modify the constructor so that an IllegalArgumentException is thrown in these cases.
Keywords Input and Output
Author Cay Horstmann
Institution San José State University
Iframe URL https://codecheck.io/files/horstmann/codecheck-bj-4-io-103
Protocol SPLICE, LTI 1.1
Protocol URL
License https://creativecommons.org/licenses/by-nc-nd/4.0/
Programming Language Java
Natural Language en

Preview

SPLICE Output