CIS-123 Home: http://www.c-jump.com/bcc/c123c/c123syllabus.htm

Assignment a7 -- BankAccount and SavingsAccount


  1. Java Application for Bank Accounts
  2. The UML Diagram
  3. How to Submit

Java Application for Bank Accounts


  1. In this assignment you write a Java program that demonstrates the concepts covered in class this far.

  2. Write the Java code for the BankAccount class using the following UML diagram:

      dice

  3. Write the Java code for a sub class of the BankAccount class and name it SavingsAccount. The specifications for the SavingsAccount class are as follows:

  4. Add another Java class named BankApp that has the main() method to instantiate and test your Java objects:

    
    	public static void main( String[] args )
    	{
    		SavingsAccount newAccount = new SavingsAccount( ...
    		// write your implementation here
    	}
    
    
  5. Add overloaded constructors for the BankAccount and the SavingsAccount classes. Recall that overloaded constructors have the same name but different signatures. All constructors should accept input parameters for the customer name and address attributes. One constructor creates an object with a zero current balance, and the other creates an object with the current balance set to whatever value is passed to the constructor as an additional input parameter.

  6. In addition to the two constructors, the getters and setters must be provided for all attributes.

     


The UML Diagram



How to Submit