Whats the difference between using -> and using . ?

In c++ you can do Class. and Class->. What are those, when are they used?
-> is used to reference members of the class when the instance of that class is a pointer.
. is used to directly access the members of the class. For non pointer objects.
Or, to put it another way:

a->b

is exactly the same as:

(*a).b
> In c++ you can do Class. and Class->.
not really
you may do object. or pointer->
or object-> if you overload the arrow operator
Thanks all
Topic archived. No new replies allowed.