Accenture Interview Question

Encapsulation in c++