In C++ do you always have initialize a pointer to an object with the new keyword?
new
Or can you just have this too:
MyClass *myclass; mycl
if you want to access a method :
1) while using an object of a class:
Myclass myclass; myclass.DoSomething();
2) while using a pointer to an object of a class:
Myclass *myclass=&abc; myclass->DoSomething();