Return a value and record work
A method's return type promises a value back to the caller.
Your task
Finish LeadWorkQueue and run the three debug lines.
class LeadWorkQueue {
private Integer processedCount = 0;
public String nextAction(String leadName) {
return '';
}
public void markProcessed() {
}
public Integer getProcessedCount() {
return processedCount;
}
}Requirements
- Void method should be present
- Calls the void method should be present
- Second queue should be present
- First Lead action should be
Action: Review Maya Chen - Two void calls should be recorded as
Processed: 2 - New queue count should be
New queue: 0 - nextAction('Omar Diaz') should be
Review Omar Diaz