50.5k views
5 votes
To define constructors and member functions outside of a class's original scope, the operator can be used.

User Zoidbeck
by
5.6k points

1 Answer

6 votes

Answer: Scope resolution operator(::)

Explanation: A member function and the constructor can be called within the function easily but for the execution of the these components outside the class , a special operator is required to call the functions. The scope resolution operator(::) preceding with the name of class is thus used for defining of the function outside class.This operator maintains the cope of the function and constructor outside the class.

User David Calhoun
by
5.7k points