fork download
  1. using System;
  2.  
  3. class Application {
  4. public static void Main (string[] args) {
  5. new B().test();
  6. }
  7. }
  8.  
  9. class A {
  10. public int x = 42;
  11. }
  12.  
  13. class B : A {
  14. public void test() {
  15. Console.WriteLine(this.x);
  16. }
  17. }
Success #stdin #stdout 0.02s 131648KB
stdin
Standard input is empty
stdout
42