Title The Class for Representing a Bank Account
Catalog Type SLCItem
Persistent ID https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.account
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 constructor of the class should accept three parameters that are used to initialize the instance (i.e., object) data when an object is instantiated from this class. The 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 Transactions1 class creates some bank accounts and requests various services.
Keywords classes, object, objects
Author Roya Hosseini
Institution University of Pittsburgh
Iframe URL https://pawscomp2.sis.pitt.edu/pcex/index.html?lang=JAVA&set=objects.classes.account
Protocol PITT, HTML
Protocol URL
License MIT
Programming Language Java
Natural Language en

Preview