Beispiel #1
0
        static void Main(string[] args)
        {
            Employee1 o1 = new Employee1("Amol", 2500, 10);
            Employee1 o2 = new Employee1("Amol", 2300);
            Employee1 o3 = new Employee1("Amol");
            Employee1 o4 = new Employee1();
            /*o1.GetData();
            o1.ShowData();*/
            /* Console.WriteLine(o1.Name);
             Console.WriteLine(o1.Basic);
             Console.WriteLine(o1.EmpNo);
             Console.WriteLine(o1.DeptNo);
             Console.WriteLine(o1.GetNetSalary());*/
            //o1.DisplayData();
            /* Console.WriteLine(o2.Name);
             Console.WriteLine(o2.Basic);
             Console.WriteLine(o2.EmpNo);
             Console.WriteLine(o2.GetNetSalary());*/
            /* o2.DisplayData();
             o3.DisplayData();
             o4.DisplayData();*/

            o1.DisplayData();
            o2.DisplayData();
            o3.DisplayData();



            o3.DisplayData();
            o2.DisplayData();
            o1.DisplayData();


            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Employee1 o1 = new Employee1();
            Employee1 o2 = new Employee1();
            Employee1 o3 = new Employee1();

            Console.WriteLine(o1.EMPNO);
            Console.WriteLine(o2.EMPNO);
            Console.WriteLine(o3.EMPNO);

            Console.WriteLine(o3.EMPNO);
            Console.WriteLine(o2.EMPNO);
            Console.WriteLine(o1.EMPNO);
            Console.ReadLine();
        }