002 OOPs using C++ with Eclipse on LinuxDiscussion Forum for Programming with C++. We introduce to programming in general, including object-oriented programming and generic programming. It is also a solid introduction to the C++ programming language, one of the most widely used languages for real-world software. This Training presents modern C++ programming techniques from the start, introducing the C++ standard library to simplify programming tasks.
Scope resolution operator defines that the function belongs to a particular class, and can only be accessed by the objects of that particular class. Objects of other classes can not access that function, unless it is used as a friend function.
So, if class name is Box, and function name is func(); then the definition goes like this: