Difference between ->, :: and . Operators?

Hi,

"->" is pointer to a reference within memory.

MyClass* myClass=new MyClass();

myClass->myFunc();

points to myfunc on class instance myClass


"::" is used for access static methods or members

MyClass::MyFunc() 


class MyClass {

    static void MyFunc();

}

"." is access to non dynamic instanced data like structures

FMyStruct struct;
struct.a
struct.b

UObject myObject;
myObject.getDisplayName();

(Just a quick overview on usage, probably not complete)

-freakxnet

1 Like