Can you add a little bit more explanation? Your variable is called objectName but you are passing the string literal "objectName". Is that intentional? Or are you just trying to pass "Test" as a parameter into your class constructor?
Test myTestVariable(objectName); //notice the lack of quotes on objectName.
creates a new variable of type Test
which is named myTestVariable
and has been initialized/constructed with your const char* data.
this is syntax identical to
(integers are not objects, exactly, but the syntax mirrors)
in the very odd case that Test was designed to allow it,
Test(objectName); //this could do something, if you wrote it that way, but this is an advance form of using special purpose objects that I suspect you were not trying to do.