Professional Documents
Culture Documents
Individual Programming: Tutorial 5 - Starting The 2 Iteration (Stage) of Development
Individual Programming: Tutorial 5 - Starting The 2 Iteration (Stage) of Development
2. Tutorial Tasks
The table summarises the tasks covered by this tutorial. The relevant class
diagrams and examples from the lecture notes are shown in Section 3.
Note that this tutorial is about the relationship between the two files. You
may find it easier to create a new class and main method for your testing,
and do your testing on the console with System.out.println rather than
trying to expand your GUI (yet!) to accommodate the new data. You should
only consider expanding your GUI as an extra task for this workshop, if you
complete everything else! The video for Lecture 7 should help you to do
this.
Task
W5.1 Create a new Data Model
Class with Getter and Setter
Methods, a Parameterised
Constructor and a toString()
method for your related data
W5.2 Create a new ReadFile
method in your DataFiles class
Notes
This follows the same pattern as your Data
Model class in Phase 1 but should reflect the
new data you have.
You may wish to test this before moving onto
W5.2
Use the NetBeans Generate Code.... function
where possible to speed this up.
Again this is very similar what you did in
Phase 1 (W3.2). You may wish to test this by
3. Class Diagrams
Figure 1b,c,d Pet Shop, Talent Agency and Footbal Team project : Explicit Relationship
between Objects of 2 Types