Which is correct syntax for declaring pointer to object?
Which is correct syntax for declaring pointer to object? Correct Answer className* objectName;
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.