Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace Homework38
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- Player player = new Player("Russia", "('')", 95, 999);
- player.ShowInfo();
- }
- }
- class Player
- {
- private string _country;
- private string _nickname;
- private int _age;
- private int _level;
- public Player(string country, string nickname, int age, int level)
- {
- _country = country;
- _nickname = nickname;
- _age = age;
- _level = level;
- }
- public void ShowInfo()
- {
- Console.WriteLine($"Страна игрока: {_country}\nИмя игрока: {_nickname}\n" +
- $"Возраст игрока: {_age}\nУровень игрока: {_level}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement