EY Interview Question

Encapsulation in OOP with code example