RTX interview question

Explain inheritance, encapsulation, and polymorphism.