static void Main(string[] args) { IQuittable obj = new Employee() { firstName = "Sample", lastName = "Student" }; obj.Quit(); Console.Read(); }
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 employee1 = new Employee() { FirstName = "Gunnar", LastName = "Andersen", Id = 1 }; Employee employee2 = new Employee() { FirstName = "Timothy", LastName = "Tugmutton", Id = 2 }; employee1.Quit(employee2); }
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(); }
static void Main(string[] args) { IQuittable x = new Employee(); x.Quit(x); }
static void Main(string[] args) { IQuittable quittable = new Employee(); quittable.Quit(); }