Hey all. Right now i'm using
to call class methods. I'm just wondering what is the difference between that and calling it like so:Code:class_obj_name.method_name(params)
?Code:class_obj_name->method_name(params)
Hey all. Right now i'm using
to call class methods. I'm just wondering what is the difference between that and calling it like so:Code:class_obj_name.method_name(params)
?Code:class_obj_name->method_name(params)
You would use the latter if class_obj_name is a pointer.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)