private static void Main(string[] args) { Emp emp1 = Emp.CreateObject(); emp1.No = 10; emp1.Name = "Sai"; emp1.Sal = "10000"; Console.WriteLine("Employee 1 Details:\n No: " + emp1.No + "\n Name: " + emp1.Name + "\n Sal: " + emp1.Sal); Emp emp2 = Emp.CreateObject(); emp2.Name = "Sri"; Console.WriteLine("Employee 2 Details:\n No: " + emp2.No + "\n Name: " + emp2.Name + "\n Sal: " + emp2.Sal); Emp emp3 = Emp.CreateObject(); emp1.Sal = "5000"; Console.WriteLine("Employee 2 Details:\n No: " + emp3.No + "\n Name: " + emp3.Name + "\n Sal: " + emp3.Sal); Console.ReadLine(); }