Ejemplo n.º 1
0
 public override void ApproveLeave(int noOfDays)
 {
     if (noOfDays < 10)
     {
         Console.WriteLine("Leave approved by manager");
     }
     else
     {
         Console.WriteLine("Leave request > 10 days, manager cannot approve. Forwarding request to BU Head.");
         Successsor.ApproveLeave(noOfDays);
     }
 }
Ejemplo n.º 2
0
 public override void ApproveLeave(int noOfDays)
 {
     if (noOfDays < 20)
     {
         Console.WriteLine("Leave approved by BU Head");
     }
     else
     {
         Console.WriteLine("Leave request > 20 days, BU Head cannot approve. Forwarding request to COO.");
         Successsor.ApproveLeave(noOfDays);
     }
 }