C#
I am creating an inventory class, i need someone to check thisand offer advice please
using System;
using System.Linq;
namespace Shop
{
class Inventory
{
// TODO: Define an intcalled mMaxSize, an array of Items called mItems, and an int calledmGold.
int mMaxSize;
string[] mItems;
int mGold;
// TODO: Write a defaultconstructor that assigns the mMaxSize to 10,
// mItems to a new array ofItems with mMaxSize as the size,
// and mGold to 0.
public Inventory(ItemhealthPotion)
{
mMaxSize = 10;
mItems = new string[mMaxSize];
mGold = 0;
}
// TODO: Write anaccessor for mGold called GetGold.
public intGetGold()
{
return mGold;
}
// TODO: Write amutator for mGold called
PayPal Gateway not configured
PayPal Gateway not configured