Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace SpaceStationRecruitment
- {
- public class Astronaut
- {
- public string Name { get; set; }
- public int Age { get; set; }
- public string Country { get; set; }
- public Astronaut(string Name, int Age, string Country)
- {
- this.Name = Name;
- this.Age = Age;
- this.Country = Country;
- }
- public override string ToString()
- {
- return $"Astronaut: {Name}, {Age} ({Country})";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement