RAD Studio |  |

Scope Resolution Operator ::

The scope access (or resolution) operator :: (two colons) lets you access a global (or file duration) member name even if it is hidden by a local redeclaration of that name. You can use a global identifier by prefixing it with the scope resolution operator. You can access a nested member name by specifying the class name and using the scope resolution operator. Therefore, Alpha::func( ) and Beta::func( ) are two different functions.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!