1.

Explain The Scope Resolution Operator.?

Answer»

The scope resolution operator permits a program to REFERENCE an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.

The answer can get complicated. It should start with “colon-colon,” however. (Some readers had not heard the term, “scope resolution operator,” but they knew what :: means. You should know the formal names of such things so that you can understand all COMMUNICATION about them.) If you claim to be well into the design or use of classes that employ INHERITANCE, you tend to address overriding virtual function OVERRIDES to explicitly call a function higher in the hierarchy. That’s good knowledge to demonstrate, but address your comments specifically to global scope resolution. Describe C++’s ABILITY to override the particular C behavior where identifiers in the global scope are always hidden by similar identifiers in a local scope.

The scope resolution operator permits a program to reference an identifier in the global scope that has been hidden by another identifier with the same name in the local scope.

The answer can get complicated. It should start with “colon-colon,” however. (Some readers had not heard the term, “scope resolution operator,” but they knew what :: means. You should know the formal names of such things so that you can understand all communication about them.) If you claim to be well into the design or use of classes that employ inheritance, you tend to address overriding virtual function overrides to explicitly call a function higher in the hierarchy. That’s good knowledge to demonstrate, but address your comments specifically to global scope resolution. Describe C++’s ability to override the particular C behavior where identifiers in the global scope are always hidden by similar identifiers in a local scope.



Discussion

No Comment Found