fork download
  1. using System;
  2.  
  3. public static class ClaseEstaticaDemo
  4. {
  5. public static void Metodo()
  6. {
  7. // implementación
  8. }
  9. }
  10.  
  11. public class ClasePrueba : ClaseEstaticaDemo
  12. {
  13. public static void Main()
  14. {
  15. //ClaseEstaticaDemo ced = new ClaseEstaticaDemo();
  16. }
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(11,14): error CS0709: `ClasePrueba': Cannot derive from static class `ClaseEstaticaDemo'
prog.cs(3,21): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty