Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>:: scope resolution operator</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ::                      Scope Resolution Operator

 class name::identifier

    The scope resolution operator is unique to C++. It lets you refer
    to a global identifier even if that identifier has been hidden by
    a local redeclaration. For example, you can define a member
    function (my_func()) of a class like this:

                class my_class
                {
                    int my_var;
                public:
                    int my_func();
                };


                int my_class::my_func()
                {
                    return 0;
                };



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson