Hexaware Technologies Interview Question

What is encapsulation what is inheritance