fork(1) download
  1. using System;
  2.  
  3. namespace Articulos.Ch03
  4. {
  5. public class ClaseBase
  6. {
  7. public int X;
  8. public ClaseBase (int x)
  9. {
  10. this.X = x;
  11. }
  12. }
  13.  
  14. public class Subclase : ClaseBase
  15. {
  16. // Implementación clase
  17.  
  18. public static void Main()
  19. {
  20. // Produce error CS1729 (Articulos.Ch03.ClaseBase'
  21. // does not contain a constructor that takes 0 arguments):
  22. // ClaseBase cb = new ClaseBase(123);
  23. }
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(14,18): error CS1729: The type `Articulos.Ch03.ClaseBase' does not contain a constructor that takes `0' arguments
prog.cs(8,16): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty