Accenture interview question

Encapsulation in c++