Beispiel #1
0
        static void Test1()
        {
            Student st   = new Student("Athar");
            Teacher tchr = new Teacher();

            tchr.Display(st.Display);
            DeplayName pn1 = new DeplayName(PrintName);
            DeplayName pn2 = new DeplayName(PrintName);
            DeplayName pn3 = new DeplayName(PrintName);
            DeplayName pn4 = new DeplayName(PrintName);
            DeplayName pn5 = pn1 + pn2 + pn3 + pn4;

            pn5();
        }
Beispiel #2
0
 public void Display(DeplayName disp)
 {
     disp.Invoke();
 }