How do I call?

How do I call the parametrized constructor while creating pointer objects?
You mean like this?
object* obj = new object(/*...*/);
Simply pass the arguments like Zhuge said. Note the difference between

class* obj = new class[] (To allocate memory for more than one elements) and class* obj = new class(....) (to pass values to 1 or more argument constructor)


Topic archived. No new replies allowed.