ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which is correct syntax for declaring pointer to object?
Correct Answer: B — 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.