Hexaware Technologies interview question

What is encapsulation what is inheritance