fork download
  1. using System;
  2.  
  3. class Base {
  4. protected int i;
  5. }
  6.  
  7. class Derived : Base {
  8. public static void Run() {
  9. Derived b = new Derived();
  10.  
  11. Console.WriteLine(++b.i);
  12. }
  13. }
  14.  
  15. public class Test
  16. {
  17. public static void Main()
  18. {
  19. Derived.Run();
  20. }
  21. }
  22.  
  23.  
Success #stdin #stdout 0.03s 37008KB
stdin
Standard input is empty
stdout
1