Example #1
0
    static void Main()
    {
        Teacher st            = new SupplyTeacher(6);
        string  teacherString = String.Empty;

        Console.WriteLine("Teacher Pay: {0}", InvocationClass.InvokeMemberOnTeacher(st, out teacherString));
    }
Example #2
0
    public static void Main()
    {
        Teacher st = new SupplyTeacher();

        Console.WriteLine(st.GetTaughtSubjectName());
    }
 static void Main(string[] args)
 {
     SupplyTeacher teach  = new SupplyTeacher();
     SupplyTeacher teach1 = new SupplyTeacher();
 }