Answer Posted / 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 |
Post New Answer View All Answers
What is difference between multiple inheritance and multilevel inheritance?
#include
How do you use inheritance in unity?
What language is oop?
What is abstraction in oops?
When not to use object oriented programming?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we need polymorphism in c#?
Why do we use oops?
What is static in oop?
write knight tour problem which is present in datastructure
What is the importance of oop?
What is encapsulation with real life example?
What are the types of abstraction?
What does and I oop mean?