Task - // Returns the Task's name

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Task.java Author: Lewis/Loftus // // Solution to Programming Project 5.3 // //******************************************************************** / public class Task implements Priority { private int priority; String name; //----------------------------------------------------------------- // Sets up the task, assigning the task's name //----------------------------------------------------------------- public Task(String taskName) { name = taskName; priority = MED_PRIORITY; } //-----------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // Returns the Task's name //-----------------------------------------------------------------String getName() { return name; } //-----------------------------------------------------------------// Sets the Task's priority level //-----------------------------------------------------------------public void setPriority(int value) { priority = value; } //-----------------------------------------------------------------// Returns the Task's priority level //-----------------------------------------------------------------public int getPriority() { return priority; } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online