Field is never assigned to, and will always have its default value null
<p>When my program first starts, in the main method I create a new Menu which then goes to the menu class.</p>

<pre><code>    private static Shop shop;
    private static Player player;

    public static void Main(string[] args)
    {
        Menu menu = new Menu();

        menu.start(menu, shop, player);
    }
</code></pre>

<p>In my menu class, I have a method called start(). Which prints out the options for the user.</p>

<pre><code>    private Menu menu;
    private Shop shop;
    private Player player;

    public void start(Menu menu, Shop shop, Player player)
    {

        this.menu = menu;
        this.shop = shop;
</code></pre>

<p>Then when I compile my program, I choose to go to the shop and I get an error of 'Object reference not set to an instance of an object.'. I think I know what I have to do, but I'm not quite sure on how you do it in the main class.</p>

<p>I think I have to add</p>

<pre><code>Shop shop
</code></pre>

<p>as a parameter in the Main method. Then declare</p>

<pre><code>this.shop = shop;
</code></pre>

<p>inside the method as I have in my other classes.</p>

<p>I have tried doing that, but it always comes up with an error. Since it's the main method, would I have to do a different approach? </p>
