Title The Class for Representing a Bank Account (Case 2)
Catalog Type SLCItem
Persistent ID https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_account__664e2a0891363872f0ba3404?index=1
Platform Name PCEX
Features
Description Construct a class that represents a basic bank account. This class should contain data representing the name of the account’s owner, the account number, and the account’s current balance. The interest rate for the account is stored as a constant. The class should have constructors that permits an account to be opened when:\n - the account name, account number, and initial balance are specified\n - only the account name and the account number are specified. In this case, initial balance is assumed to be zero.\nThe other methods of this class should perform various services on the account (making deposits, withdrawals, adding interest to the account). These methods should examine the data passed into them to make sure the requested transaction is valid.\n\nThe Transactions2 class creates some bank accounts and requests various services.
Keywords
Author Mohammad Hassany
Institution University of Pittsburgh
Iframe URL https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/objects_classes_account__664e2a0891363872f0ba3404?index=1
Protocol SPLICE
Protocol URL
License MIT
Programming Language JAVA
Natural Language en

Preview

SPLICE Output