Results 1 to 3 of 3
  1. #1
    Bascotie is offline Member
    Join Date
    Apr 2008
    Posts
    88
    Rep Power
    0

    Default 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!

  2. #2
    Bascotie is offline Member
    Join Date
    Apr 2008
    Posts
    88
    Rep Power
    0

    Default

    I have cross posted this on another thread as well:
    New To Java - Creating "Class" CRC Cards

  3. #3
    Bascotie is offline Member
    Join Date
    Apr 2008
    Posts
    88
    Rep Power
    0

Similar Threads

  1. Replies: 8
    Last Post: 04-16-2012, 11:00 PM
  2. Classes with object attributes
    By RRasco in forum New To Java
    Replies: 5
    Last Post: 11-25-2008, 12:07 AM
  3. How to read AIX attributes & values.
    By John_28 in forum New To Java
    Replies: 5
    Last Post: 05-05-2008, 08:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •