Beruflich Dokumente
Kultur Dokumente
Requirement Marks
Class has a javadoc comment with @author and @version and description 3
1
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
This constructor has javadoc comments including @param tags for all 4
parameters
2
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
3
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
Provide well-named mutator methods for each variable, with the same 6
rules as listed in the constructor:
- Model year
- Model name
- Manufacturer
- Horsepower
- Twin-engine
- Web page
Each mutator method must have a javadoc comment with an @param tag 6
4
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
Note: use System.out.print() to avoid putting a line break at the end. Use
System.out.println() to put a line break at the end.
Notes:
- Use your own accessor methods to get the values for printing (i.e.
do not use the instance variables directly)
2
5
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
Create two static accessor methods: one to return the body type; one to 2
return the web page.
1
Create a main() function to run the Assignment1 program.
In the main method print the details of the 6 boats using the getBoatDetails() method. 6
Total mark
6
COMP1409 [ASSIGNMENT 1 – DUE THE NIGHT BEFORE LESSON 5]
/99