Pergunta de entrevista da empresa RTX

Explain inheritance, encapsulation, and polymorphism.