Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sro in c++

In C++, scope resolution operator is  " :: " . It is used for following purposes.
  1} To access a global variable when there is a local variable with same name
  2) To define a function outside a class.
  3) To access a class’s static variables.
  4) In case of multiple Inheritance.
  5) For namespace.
  6) Refer to a class inside another class:
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sro
ADD COMMENT
Topic
Name
3+7 =