Which of the following operators allow to define the member functions of a class outside the class?

Options
- ::
- ?
- :?
- %


CORRECT ANSWER : ::

Discussion Board
C++ Programminng

CareerRide trains comp majors for sure

IZERE Patience 10-18-2019 05:43 AM

I.sc

Inter

Uttam Prasad Mahato 02-14-2019 04:28 AM

C++ - Operators

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-2-2017 11:58 PM

well

Its very useful for me

navitha 01-19-2015 05:15 AM

c

to gain knowledge

komala 12-9-2014 12:58 AM

Which of the following operators below allow to define the member functions of a class outside the class

This question does not make too much sense. What is the meaning of "outside the class"?
How can you define member function outside of the class? If it is outside of the class it cannot be a member function.
Only static members can be accessed using ? operator when no object is instantiated (outside of the class).
Derived class can call members of the base class using ? operator but this is inside of the class.


John 05-14-2014 01:20 PM

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