C#, Classes inside Original Class bad programming practice?
<p>I have been following a workshop whilst I'm learning C#. </p>

<p>One of the class exercises that was given was to create a program that prints your name out into the console.</p>

<p>I have developed this.</p>

<p>My questions is .. is putting other classes into the main class a bad programming practice? I figure I'd ask before I started making habits! Should I just create a seperate class, incase I want to expand it to an actual project?</p>

<pre><code>class Exercise1
{
    static void Main()
    {
        Character myCharacter = new Character();
        myCharacter.name = "tekaC";

        Console.WriteLine("Hello {0}!", myCharacter.name); //Prints the character's name into the Console output
    }
}
class Character
{
    public string name;
}
</code></pre>
