1.

Write About The Scope Resolution Operator?

Answer»

The scope resolution operator (::) can be used to define the member functions of a program outside the BOUNDARY of a class and not WITHIN the class specifier. The global scope resolution operator, which is coded as a prefix to the variable's NAME (for example,:: varname), lets you explicitly reference a global variable from a scope in which a local variable has the same name.

A program can USE scope resolution operator (::) to BYPASS the override of a base class member that a derived class has overridden.

The scope resolution operator (::) can be used to define the member functions of a program outside the boundary of a class and not within the class specifier. The global scope resolution operator, which is coded as a prefix to the variable's name (for example,:: varname), lets you explicitly reference a global variable from a scope in which a local variable has the same name.

A program can use scope resolution operator (::) to bypass the override of a base class member that a derived class has overridden.



Discussion

No Comment Found