Beispiel #1
0
        static void Main(string[] args)
        {
            Address   a1 = new Address(101, "Delhi", "india");
            Employee1 e1 = new Employee1(1, "Kurt", a1);

            e1.display();
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            Employee1 emp1 = new Employee1("Ram", "Ram101", "BTM", "Bizruntime", "Software", 20000);

            Console.WriteLine("Ename:" + "  " + emp1["Ename"]);
            Console.WriteLine("Eid:" + "  " + emp1["Eid"]);
            Console.WriteLine("Elocation:" + "  " + emp1["Elocation"]);
            Console.WriteLine("Ecompany:" + "  " + emp1["ECompany"]);
            Console.WriteLine("Edesign:" + "  " + emp1["Edesign"]);
            Console.WriteLine("Esalary:" + "  " + emp1["Esalary"]);
            Console.Read();
        }