fork(1) download
  1. using System;
  2.  
  3. namespace Articulos.Ch03
  4. {
  5. public class ClaseBase
  6. {
  7. protected int X;
  8. public ClaseBase ()
  9. {
  10. X = 1;
  11. }
  12. }
  13.  
  14. public class Subclase : ClaseBase
  15. {
  16. public Subclase ()
  17. {
  18. Console.WriteLine (X);
  19. }
  20. }
  21.  
  22. public class ClasePrueba
  23. {
  24. public static void Main()
  25. {
  26. Subclase sc = new Subclase();
  27. }
  28. }
  29. }
Success #stdin #stdout 0.03s 33944KB
stdin
Standard input is empty
stdout
1