Which operator is used to define a member of a class from outside the class definition itself?

Options
- ::
- :
- >>
- <<


CORRECT ANSWER : ::

Discussion Board
C++ - Scope Resolution Operator

Scope resolution operator (::) allows to define the member functions outside the class. This operator is used When local variable and global variable are having same name, local variable gets the priority. C++ allows flexibility of accessing both the variables using scope resolution operator.

Prajakta Pandit 01-24-2017 01:56 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement