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.Text;
- using System.Threading.Tasks;
- namespace WindowsFormsApplication1
- {
- class Team
- {
- //svoistva dlya polei ne obyazatelni! Tak prosit Poklonov
- private string name;
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
- private int pobedi;
- public int Pobedi
- {
- get { return pobedi; }
- set { pobedi = value; }
- }
- private int nich;
- public int Nich
- {
- get { return nich; }
- set { nich = value; }
- }
- private int proig;
- public int Proig
- {
- get { return proig; }
- set { proig = value; }
- }
- public Team(string name, int pobedi, int nich, int proig)
- {
- this.name = name;
- this.pobedi = pobedi;
- this.nich = nich;
- this.proig = proig;
- }
- public string Ochki(string _name, int _pobedi, int _nich)
- {
- return string.Format($"{_name}: {_pobedi*3+_nich} points");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement