Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Related Rants
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() ;
//.........
undefined
wk4