Referencing parent members and globals

When an attribute or a global is masked by a local declaration, it can still be accessed by using the double colon operator. This is known as qualifying a name with its class name.

::put();   // Access the global function put()

event::doit();   // Access the doit() declared in class event


Next note in series

Back to index