making a variable an instance of a class
<p>I'm in a-level computing and I was wondering if someone could please tell me the definition of this. If I have a class with methods etc, then I make another class where I kind of generate a variable of that first class. What is this actually called?
It's the variable definition I'm after shown below "whatisThis" is this a class object?</p>

<pre><code>MyClass1
{
  ...
}

MyClass2
{
   MyClass1 whatisThis = new MyClass1();
}
</code></pre>
