Define member function outside the class - Using scope resolution

Q.  By using what from the following can we define member function outside the class?
- Published on 16 Jun 15

a. Using structures
b. Using pointers
c. Using union
d. Using scope resolution

ANSWER: Using scope resolution
 
Scope resolution operator is used to define a function outside the class or when we want to use a global variable but also has a local variable with the same name.

Post your comment / Share knowledge


Enter the code shown above:

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