コード例 #1
0
 public Employee(int id, string name, string address, department dt)
 {
     this.id      = id;
     this.name    = name;
     this.address = address;
     d            = dt;
 }
コード例 #2
0
        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();
        }