Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

to find out the minimum of two integer number of two different classes using friend function

0 Answers  


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


what is the difference between virtual function and destoctor?

1 Answers  


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


Why do we need oop?

0 Answers  


how to create thread in java?

17 Answers   IBM, Infosys, Wipro,


c++ is a pure object oriented programming or not?

5 Answers   Wipro,


what is code for call by value and call by reference?

1 Answers  


Can you inherit a private class?

0 Answers  


What are the benefits of polymorphism?

0 Answers  


What is encapsulation with real life example?

0 Answers  


What is destructor oops?

0 Answers  


Categories