HighRadius interview question

What is encapsulation? Implement it using java.