fork download
  1. using static System.Console;
  2. public class Program {
  3. public static void Main() {
  4. string StudentName;
  5. Student stud = new Student(StudentName = "New Student");
  6. WriteLine(StudentName);
  7. }
  8. }
  9.  
  10. class Student {
  11. private string name;
  12. public Student(string nome) => name = nome;
  13. }
  14.  
  15. //https://pt.stackoverflow.com/q/126348/101
Success #stdin #stdout 0.02s 15972KB
stdin
Standard input is empty
stdout
New Student