67.9k views
5 votes
When a member function is defined outside of the class declaration, the function name must be qualified with theWhen a member function is defined outside of the class declaration, the function name must be qualified with the____________.

User Adinanp
by
7.6k points

1 Answer

4 votes

Answer:

class name, followed by the scope resolution operator

Step-by-step explanation:

The scope resolution operator helps to identify and specify the context to which an identifier refers, particularly by specifying a namespace.

Therefore, when a member function is defined outside of the class declaration, the function name must be qualified with the class name, followed by the scope resolution operator

User Bheshaj
by
6.4k points