Revature Interview Question

what is encapsulation and write down the implementation?