Quick question while learning C++:
Say you have class A, you can instantiate an object of class A like:
A a;
And then you can do stuff with that class (eg, a.method(), etc.)
But you can also do:
A a = new A();
And do stuff with that, and delete it with:
delete a;
My question: What's the difference between the two?