static void Main(string[] args) { Employee employee = new Employee(); employee.FirstName = "Sample"; employee.LastName = "Student"; employee.SayName(); IQuittable employeeQuit = new Employee(); employeeQuit.Quit(); Console.ReadLine(); }
static void Main(string[] args) { IQuittable name = new Employee(); Employee employees = new Employee() { FirstName = "Sample", LastName = "Student" }; //hitting enter quits the program employees.SayName(); Console.ReadLine(); name.Quit(); }