Explanations

Classes

  • Default access control: Private.

Operator ( :: )
  • Used to access the content of a class , struct , scope , or namespace .

  • The symbol ::  is used like an "address/directory", so using:

    • MyClass::variable_name , refers to a variable of the class MyClass .

    • ::variable_name , refers to a variable in the global scope.

  • Writing using ScopeName  exposes the content of the desired scope in the current scope.