public static void SetNextApproverElsePrint(Approver approver, int numberOfLeaves) { if (approver.NextApprover != null) { approver.NextApprover.ApproveLeave(numberOfLeaves); } else { Console.WriteLine("Your leaves require special approval, please contact HR dept."); } }
public void SetNextApprover(Approver nextApprover) { NextApprover = nextApprover; }