public Employee(int id, string name, string address, department dt) { this.id = id; this.name = name; this.address = address; d = dt; }
static void Main(string[] args) { department d = new department(2, "cse"); Employee e = new Employee(2, "swathi", "cheanni", d); e.show(); d.showdepart(); Console.ReadKey(); }