public Citizen() { Type = "M"; Name = "Medborgaren"; Belongings.Add(new Sak("Nycklar")); Belongings.Add(new Sak("Mobil")); Belongings.Add(new Sak("Pengar")); Belongings.Add(new Sak("Klocka")); }
public void BuyItem(IItem item, Seller seller) { const string tabs = " "; Console.WriteLine($"{tabs}{Name} bought {seller.Name}'s #{item.SellerItemId} for ${String.Format("{0:0.00}", item.Price)}"); Belongings.Add(item); NumberOfItemsBought++; Balance -= item.Price; AmountUsed += item.Price; }