Pergunta de entrevista da empresa Revature

Describe two pillars of Object Oriented Programming

Respostas da entrevista

Sigiloso

20 de jul. de 2018

I chose Encapsulation and Polymorphism. Encapsulation is also known as data hiding, and keeps the variables within the method from being accessed unless using getter and setter methods. Polymorphism is the next step of inheritence when something can be something else but behaves differently. This is achieved by using method overriding and constructor overloading.

3

Sigiloso

8 de ago. de 2019

I have an interview with them on Monday. Also, encapsulation can include hiding the implementations from other code, and the user.