02-19-2014, 11:23 PM
: is equivelent to c++'s -> when your dealing with an instance. When dealing with a static method : is equivelent to ::. However itemCategory is not a class its a namespace (hence no c). This means that function is not in a class so you call with dot.