Pergunta de entrevista da empresa IBM

How many types of OOPs are there? What is Encapsulation? How to retrieve data from a table?