Exemple #1
0
        static void Main(string[] args)
        {
            Employee employee = new Employee("Max", "Jonson")
            {
                Experience = 2,
                Position   = "manager"
            };

            employee.ShowSalary();
        }
Exemple #2
0
        static void Main()
        {
            Employee employee = new Employee("Alaisy", "Magarych")
            {
                Post       = "engineer",
                Experience = 4  //years.
            };

            Console.WriteLine($"{employee.Name} {employee.Surname} {employee.Post.ToUpper()}");
            employee.ShowSalary();

            Console.ReadLine();
        }