Question from an university test

1)What is the purpose of the scope resolution operator in C ++? Illustrate.

2)In C ++, which functions can access private data of a class?

3)How is it possible, in a class context, declare a function that doesn't change, to be invoked, the data members of the object?
1) Resolving scope since it's called scope resolution

2) There's an old joke saying "C++ : Where friends have access to your private members"
Even cplusplus.com T-shirts say that

3) You need to declare a function which explicitly states that it's not going to change the data member of the object

4) How can you find someone to answer your homework?
You can't. RTFM ( F stands for 'Funny' )

http://www.cplusplus.com/articles/how_to_ask/
2) There's an old joke saying "C++ : Where friends have access to your private members"
Even cplusplus.com T-shirts say that


Above statement is great! I wonder if we can change to below. I think it is wrong but it is great tongue-in-cheek anyway.

"C++ : Where friends have access and can modify your private members" ??? :P
Topic archived. No new replies allowed.