What is a scope resolution operator?

Answers were Sorted based on User's Feedback



What is a scope resolution operator?..

Answer / vikram

scope resolution operator(::) is used to define member
functions outside the class,that is we are defining the
member functions explicitly.
Scope resolution operator is also used to access the
globally declared variables.
for example,
#include<iostream.h>
int a=20;
main()
{
int a=10;
cout<<a<<endl<<::a;
}
here,the output will be:
10
20
thnx

Is This Answer Correct ?    38 Yes 6 No

What is a scope resolution operator?..

Answer / pankaj

A scope resolution operator (::), can be used to define the
member functions of a class outside the class.
It shows the scope resolution operator untangling a mess
made by using the same names for different kinds of entities
base class overridden member function using the scope
resolution operator (: :)

Is This Answer Correct ?    25 Yes 10 No

What is a scope resolution operator?..

Answer / khadeer.k

when a function is declared inside the class, it can be
used or imlemented with the operator called scope
resolution operator with a :: symbol.

Is This Answer Correct ?    24 Yes 16 No

What is a scope resolution operator?..

Answer / amrut kanthavadiya

when overriden arrives at that time scope resolution use
for seperate out overridden properties or Method.

Scope resolution use for access function or properities out
side from the class.

Is This Answer Correct ?    7 Yes 3 No

What is a scope resolution operator?..

Answer / bhagavathi chouhan

:: it is the symbol of scope resolution operator it is
define in the class

Is This Answer Correct ?    15 Yes 16 No

Post New Answer

More OOPS Interview Questions

What are the advantages of polymorphism?

0 Answers  


what are the ways in which a constructors can be called?

2 Answers   TCS,


What is polymorphism ? Explain with examples

8 Answers   Ness Technologies,


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


Why is abstraction needed?

0 Answers  






Can we define a class within the interface?

0 Answers  


What is pure oop?

0 Answers  


What is encapsulation and abstraction? How are they implemented in C++?

0 Answers   Agilent, ZS Associates,


oops concept is used for?

3 Answers   Synergy,


what is virtual destructor

7 Answers   L&T, TCS,


What is the types of inheritance?

0 Answers  


Who invented oop?

0 Answers  


Categories