fork download
  1. using System;
  2.  
  3. internal class A
  4. {
  5. // Miembros de la clase A
  6. }
  7.  
  8. public class B : A
  9. {
  10. // Miembros de la clase B
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(8,14): error CS0060: Inconsistent accessibility: base class `A' is less accessible than class `B'
prog.cs(3,16): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty