Task2 - -public void setPriority(int value priority = value...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Task2.java Author: Lewis/Loftus // // Solution to Programming Project 5.4 // //******************************************************************** / public class Task2 implements Priority, Complexity { private int priority; private int complexity; String name; //----------------------------------------------------------------- // Sets up the task, assigning the task's name //----------------------------------------------------------------- public Task2(String taskName) { name = taskName; priority = MED_PRIORITY; } //----------------------------------------------------------------- // Returns the task's name //----------------------------------------------------------------- String getName() { return name; } //----------------------------------------------------------------- // Sets the task's priority level
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public void setPriority(int value) { priority = value; } //-----------------------------------------------------------------// Returns the task's priority level //-----------------------------------------------------------------public int getPriority() { return priority; } //-----------------------------------------------------------------// Sets the task's complexity level //-----------------------------------------------------------------public void setComplexity (int complexity) { this.complexity = complexity; } //-----------------------------------------------------------------// Returns the task's complexity level //-----------------------------------------------------------------public int getComplexity() { return complexity; } }...
View Full Document

{[ snackBarMessage ]}

Page1 / 2

Task2 - -public void setPriority(int value priority = value...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online