static void Main(string[] args) { Employee employee = new Employee("Max", "Jonson") { Experience = 2, Position = "manager" }; employee.ShowSalary(); }
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(); }