I'm comming from "java-world" and now I want to start learning C++. I know in C++ objects are created like variables without the key word "new" which is used in java, but I have often seen in OOP code, when objects are create used by pointers like:
Car* car1 = new Car();
car1->doSomething();
instead of
Car car1;
car1.doSomething();
What's atually the difference? What's the advantage or disadvantage?