You are viewing an older revision! See the latest version

Compiler Error 153

Calling method on a pointer to a class instance without using the (*instance). shorthand of -> ?

ie. its one or the other

Class instance();
[...]
classInstance.method() 

or

Class *instance = new Class();
[...]
classInstance->method()

All wikipages