Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace SpaceStationRecruitment
  6. {
  7. public class Astronaut
  8. {
  9. public string Name { get; set; }
  10. public int Age { get; set; }
  11. public string Country { get; set; }
  12.  
  13. public Astronaut(string Name, int Age, string Country)
  14. {
  15. this.Name = Name;
  16. this.Age = Age;
  17. this.Country = Country;
  18. }
  19.  
  20. public override string ToString()
  21. {
  22. return $"Astronaut: {Name}, {Age} ({Country})";
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement