Revature interview question

what is encapsulation and write down the implementation?