Advertisement
Guest User

team

a guest
Dec 6th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.22 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace WindowsFormsApplication1
  8. {
  9.     class Team
  10.     {
  11.         //svoistva dlya polei ne obyazatelni! Tak prosit Poklonov
  12.         private string name;
  13.         public string Name
  14.         {
  15.             get { return name; }
  16.             set { name = value; }
  17.         }
  18.  
  19.         private int pobedi;
  20.         public int Pobedi
  21.         {
  22.             get { return pobedi; }
  23.             set { pobedi = value; }
  24.         }
  25.  
  26.         private int nich;
  27.         public int Nich
  28.         {
  29.             get { return nich; }
  30.             set { nich = value; }
  31.         }
  32.  
  33.  
  34.         private int proig;
  35.         public int Proig
  36.         {
  37.             get { return proig; }
  38.             set { proig = value; }
  39.         }
  40.  
  41.         public Team(string name, int pobedi, int nich, int proig)
  42.         {
  43.             this.name = name;
  44.             this.pobedi = pobedi;
  45.             this.nich = nich;
  46.             this.proig = proig;
  47.         }
  48.  
  49.         public string Ochki(string _name, int _pobedi, int _nich)
  50.         {
  51.  
  52.  
  53.             return string.Format($"{_name}: {_pobedi*3+_nich} points");
  54.         }
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement