Suppose I have a class here:
class Test
{
Test(int x, const char* y)
{
// Do something
}
}
and I wanted to initialize it. I have 2 methods:
Test test(100, "hello world!");
and
Test test = Test(100, "hello 2nd method!");
What are the differences between the 2 and which one is better ( as in faster )
I saw this question here, but it is for implicit converting the objects.