Hi,
Can someone please help me with understanding the differences between the 2 please:
Shape* rectangle = new Shape;
And
Shape rectangle;
I know that with the pointer you use the "->" operator to access the object methods, and with the other one you use the "." operator, but what exactly is the difference between them?
Thanks for your time and help.