Esempio n. 1
0
 public static void Main()
 {
     MyDerivedC mC = new MyDerivedC();
     mC.MyMethod();
     Console.WriteLine("x = {0}, y = {1}", mC.GetX, mC.GetY);
     Console.ReadLine();
 }
    public static void Main()
    {
        MyDerivedC mC = new MyDerivedC();

        mC.MyMethod();
        Console.WriteLine("x = {0}, y = {1}", mC.GetX, mC.GetY);
    }
Esempio n. 3
0
    public static void Main()
    {
        MyDerivedC mC = new MyDerivedC();

        mC.MyMethod();
        Console.WriteLine(mC.GetX.ToString() + " " + mC.GetY.ToString());
    }
Esempio n. 4
0
   public static void Main() 
   {
      MyDerivedC mC = new MyDerivedC();

      // Direct access to protected members:
      mC.x = 10;
      mC.y = 15;
      Console.WriteLine("x = {0}, y = {1}", mC.x, mC.y); 
   }
Esempio n. 5
0
    public static void Main()
    {
        MyDerivedC mC = new MyDerivedC();

        // Direct access to protected members:
        mC.x = 10;
        mC.y = 15;
        Console.WriteLine("x = {0}, y = {1}", mC.x, mC.y);
    }