fork(1) download
  1. using System;
  2. public class Panda
  3. {
  4. static void Main()
  5. {
  6. Panda p1 = new Panda ("Pan Dee");
  7. Panda p2 = new Panda ("Pan Dah");
  8. Console.WriteLine (p1.Name); // Pan Dee
  9. Console.WriteLine (p2.Name); // Pan Dah
  10. Console.WriteLine (Panda.Population); // 2
  11. }
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(6,12): error CS1729: The type `Panda' does not contain a constructor that takes `1' arguments
prog.cs(2,14): (Location of the symbol related to previous error)
prog.cs(7,12): error CS1729: The type `Panda' does not contain a constructor that takes `1' arguments
prog.cs(2,14): (Location of the symbol related to previous error)
prog.cs(8,23): error CS1061: Type `Panda' does not contain a definition for `Name' and no extension method `Name' of type `Panda' could be found. Are you missing an assembly reference?
prog.cs(2,14): (Location of the symbol related to previous error)
prog.cs(9,23): error CS1061: Type `Panda' does not contain a definition for `Name' and no extension method `Name' of type `Panda' could be found. Are you missing an assembly reference?
prog.cs(2,14): (Location of the symbol related to previous error)
prog.cs(10,26): error CS0117: `Panda' does not contain a definition for `Population'
prog.cs(2,14): (Location of the symbol related to previous error)
Compilation failed: 5 error(s), 0 warnings
stdout
Standard output is empty