Loading practice questions
Which is correct syntax for declaring pointer to object?
Correct Answer: B — className* objectName;
Explanation:
The syntax must contain symbol after the className as the type of object. This declares an object pointer. This can store address of any object of the specified class.