string EName, Designation;
Console.Write("Enter the Employee ID = ");
this.EmpId = Convert.ToInt32(Console.ReadLine());
Console.Write("Enter the Employee Name = ");
this.EName = Console.ReadLine();
Console.Write("Enter the Employee Designation = ");
this.Designation = Console.ReadLine();
Console.Write("Enter the Employee Salary = ");
this.Salary = Convert.ToDouble(Console.ReadLine());
public Employee_04(Employee_04 E)
this.Designation = E.Designation;
public override string ToString()
string Output = "Employee Id is = " + this.EmpId + "\n" + "Employee Name = " + this.EName + "\n" + "Employee Designation = " + this.Designation + "\n" + "Employee Salary = " + this.Salary;
Employee_04 E1 = new Employee_04();
Employee_04 E2 = new Employee_04(E1);
Console.WriteLine("--------------------------------------------------");
Console.WriteLine("--------------------------------------------------");