开发者

What is the difference between the following? [duplicate]

This question already has answers here: Closed 12 years ago.

Possible Duplicate:

Do the parentheses after the type name make a difference with new?

Assuming A is a开发者_Python百科 class properly defined with constructors etc., what is the difference between these?

A *ptrA = new A;
A *ptrA = new A();


It depends on the definition of A - "a class properly defined with constructors etc" is very unhelpful and impressively vague.


They are the same

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜