JK Tech interview question

encapsulation and its usage in project