Beispiel #1
0
 public static void printEmployer(Employer e)
 {
     Console.WriteLine("Name: "+e.getName());
     Console.WriteLine("Level: "+e.getLevel());
     Console.WriteLine("Experience: "+e.getExperience());
     Console.WriteLine("Leader: "+e.getIsLeader());
 }
Beispiel #2
0
 public static double getSalary(Employer e)
 {
     double salary=245.0;
     if(e.getLevel()==2){
         salary+=100;
     }
     if(e.getIsLeader()==true){
         salary+=245*.15;
     }
     return salary;
 }