This class represents a task and should be saved in the file
Task.java.
Task
– name : String
– priority : int
«constructor» Task()
«constructor» Task( t: String, p: int )
+ getName( ) : String
+ getPriority( ): int
+ setName( t : String ) : void
+ setPriority( p: int ) : void
+ toString( ) : String
+ equals( o : Object ) : boolean
Field
Description
task A String: representing the task name, should be limited toa maximum of 35 characters
priority An int: in the range 1 – 5 inclusive
The Task Class
Brief descriptions of the Task
class instance variables and methods
Method
Description
Task()
Constructor that defaults to none and 1.
Task(String,int)
Sets task to first argument and
OR
OR