public bool Transfer(BunkAccount destinationBunkAccount, Money money) { if (Expend(money)) { destinationBunkAccount.Enroll(money); History.Add("Перевод " + money + " на счет " + destinationBunkAccount.Number); return(true); } else { return(false); } }
Player(String login, String password, BunkAccount bunkAccount) : base(login, password) { GamesList = new List <Game>(); BunkAccount = bunkAccount; }
// Developers public GameCompany(String name) { Name = name; BunkAccount = new BunkAccount(); GamesList = new List <Game>(); }