using System;
// Sample for "In what order do things happen?" at:
// https://docs.microsoft.com/en-us/answers/questions/462106/in-what-order-do-things-happen.html
public class Program
{
public static void Main()
B b = new B();
}
public class A
int p = 8;
public A()
Console.WriteLine("Constructor for A");
public class B : A
int q = 9;
public B()
q++;
Console.WriteLine("Constructor for B");