Question d’entretien chez Revature

Describe two pillars of Object Oriented Programming

Réponses aux questions d'entretien

Utilisateur anonyme

20 juil. 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

Utilisateur anonyme

8 août 2019

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