0
dhruv
8y

Class Workday extends NormalDay{
PriorityList taskList = getDefaultTasks() ;

Funitems finitems=getEnjoymentTasks();

Workday addTasks(Task... tasks){
taskList. AddAll(tasks);
return this ;
}

PriorityList getTasks() {
return taskList ;
}

Void act() {
funItem.lookupAppropriateItem().execute();
taskList.popTop(). Execute();

}

}

//class ends

//inside main...
....
...
Office today = new Workday();
today.addTasks(yesterday. GetTasks()) ;

Today. act() ;

//.........

Comments
Add Comment