Example #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);
    }
Example #3
0
    public static void Main()
    {
        MyDerivedC mC = new MyDerivedC();

        mC.MyMethod();
        Console.WriteLine(mC.GetX.ToString() + " " + mC.GetY.ToString());
    }
Example #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); 
   }
Example #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);
    }