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)
This is a discussion on class method calls within the C++ Programming forums, part of the General Programming Boards category; Hey all. Right now i'm using Code: class_obj_name.method_name(params) to call class methods. I'm just wondering what is the difference between ...
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.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way