C# Filling an array with classobjects : <p>I have a very basic questions and I feel like something fundamental is missing because none of my searches seems to answer my question.</p>

<p>What i want to achieve is to create a class lets say Dog with a couple of variablemembers, public int age, public string name, public string breed etc and make a classobject of said class which I would name MyDog and ask the user to give MyDog some values.</p>

<p>Lets say have a class with an array lets call it dogcage and i want to fill it with these class objects myDog from the user. </p>

<p>I thought it would be something like this, pardon my formating I only have a phone available.(code removed since the page didnt accept the formating)</p>

<pre><code>Dogcage[]mydogcage = {New mydog(5, "MrDog", "German shepherd")}
</code></pre>

<p>I think im way off on my array where is would need some guidance.
I also dont quite grasp how to name an array after something in a different class. I would usually just read more but I have read so much and feel a bit blocked on my logic where i cant reason properly any more. </p>
