Methods and Attributes Layout
Hi everyone,
To study how a mortgage operates we are creating a program in Java that will imitate a bank loan. We need to create CRC cards for the first part of our project which is basically a table in word that lists the class/ methods/ Collaboration.
For example, we have a class called LoanAccount, it does NOT collaborate with any other classes, and we have attributes and methods such as:
//Attributes
String accNumber; // Account Number Identifier
String custName;
//Methods
*/**
Constructor that creates a new object whose data has values specified by these four arguments. activeStatus is set to true.
*/
Public LoanAccount(String accountNumber, String customerName, String address, String phoneNumber, double balance, double interestRate, double prinAmount){}
and we can say something like "Assume all getters and setters" since these are just CRC cards and not the actual program.
Now we've got some information for our LoanAccount class and LoanController class (though they may not be complete)
but we need methods, attributes for:
Program1App = Application Class - The Systems manager[should do no work or logic]
LoadUI = provides the view to the user, sends messages to the controller
LoadStoreAccts = responsible for getting and putting account objects from/to disk
We have been working at this (a few of us classmates) with no luck as where to go from here. Any ideas what attributes and methods go in these classes?
We were thinking the LoadUI would continue all the JOptionPane.showMessageDialog statements and LoadStoreAccts would have something to do with I/O statements but we can't seem to find the right code for it.
Any help is much appreciated!