fork download
  1. abstract class Animal
  2. {
  3. }
  4.  
  5. abstract class Parajo : Animal
  6. {
  7. }
  8.  
  9. abstract class Insecto : Animal
  10. {
  11. }
  12.  
  13. abstract class Volador : Animal
  14. {
  15. }
  16.  
  17. abstract class Carnivoro : Animal
  18. {
  19. }
  20.  
  21. public class Gallina : Pajaro
  22. {
  23. }
  24.  
  25. public class Agila : Parajo, Volador, Carnivoro
  26. {
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(21,24): error CS0246: The type or namespace name `Pajaro' could not be found. Are you missing a using directive or an assembly reference?
prog.cs(25,30): error CS1721: `Agila': Classes cannot have multiple base classes (`Parajo' and `Volador')
prog.cs(13,16): (Location of the symbol related to previous error)
prog.cs(25,39): error CS1721: `Agila': Classes cannot have multiple base classes (`Parajo' and `Carnivoro')
prog.cs(17,16): (Location of the symbol related to previous error)
prog.cs(25,14): error CS0060: Inconsistent accessibility: base class `Parajo' is less accessible than class `Agila'
prog.cs(5,16): (Location of the symbol related to previous error)
Compilation failed: 4 error(s), 0 warnings
stdout
Standard output is empty