What is the difference between creating an instance of a class in heap or in stack.
One of them is a pointer while the other is an instance of the class...Code:
MyClass *clss = new MyClass(...);
clss->someMethod();
and
MyClass clss(...);
clss.someMethod();
