Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            First first = new First();

            first.FirstMethod();

            Second second = new Second();

            second.SecondMethod();

            FirstAndSecond firstandsecond = new FirstAndSecond();

            firstandsecond.FirstMethod();
            firstandsecond.SecondMethod();

            FirstAndSecondClass firstandsecondclass = new FirstAndSecondClass();

            firstandsecondclass.FirstMethod();

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public void SecondMethod()
 {
     second.SecondMethod();
 }                                                     //how about comment this line?