Hello,
suppose I have a class defined in the following way:
class Test
{
//bla bla
};
Is there difference between these two forms:
Test* pt = new Test;
and
Test* pt = new Test();
Do these parenthesis mean something?
Hello,
suppose I have a class defined in the following way:
class Test
{
//bla bla
};
Is there difference between these two forms:
Test* pt = new Test;
and
Test* pt = new Test();
Do these parenthesis mean something?
they are identical.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.