Difference between Object var() and Object* var = new Object()

Posted by Puyover on Stack Overflow See other posts from Stack Overflow or by Puyover
Published on 2010-06-16T13:53:25Z Indexed on 2010/06/16 14:02 UTC
Read the original article Hit count: 300

Filed under:

If I have an Object class named, what's the difference between create an instance just like that:

Object var();

and:

Object* var = new Object();

?

© Stack Overflow or respective owner

Related posts about c++