Exemple #1
0
 public static void Main(String []args)
 {
     Employer e=new Employer();
     Console.WriteLine("Enter fields for employer\nName: ");
     e.setName(Console.ReadLine());
     Console.WriteLine("Level: ");
     e.setLevel(int.Parse(Console.ReadLine()));
     Console.WriteLine("Experience: ");
     e.setExperience(int.Parse(Console.ReadLine()));
     Console.WriteLine("Is Leader?: (yes/no)");
     if(Console.ReadLine()=="yes"){
         e.setIsLeader(true);
     }else{
         e.setIsLeader(false);
     }
     printEmployer(e);
     Console.WriteLine("his salary is : "+getSalary(e));
     compareMonts(e);
     Console.ReadKey();
 }