Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CSLight
- {
- class Player
- {
- private string _name;
- private int _health;
- public Player(string name, int health)
- {
- _name = name;
- _health = health;
- }
- public void ShowInfo()
- {
- Console.WriteLine("Игрок - " + _name + "HP - " + _health);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement