using System;
namespace ConsoleApplication1
{
public class Employee
{
public Employee()
{
this.ID = 0;
this.Name = "N/A";
Address = "N/A";
}
public int ID { get;set; }
public string Name { get;set; }
public string Address { get;set; }
}
class Program
{
static void Main(string[] args)
{
Employee emp = new Employee();
emp.ID = 1;
emp.Name ="Raj";
emp.Address = "Pune";
Console.ReadLine();
}
}
}
Employee emp = new Employee()
{
ID = 1,
Name ="Raj",
Address = "Pune"
};
Employee emp = new Employee()
{
ID = 1,
Name ="Raj",
Address = "Pune",
Address = new Address()
{
Street = "Diamond Street",
City = "New York",
Country = "USA"
}
};