Domanda di colloquio di Revature

Describe two pillars of Object Oriented Programming

Risposte di colloquio

Anonimo

20 lug 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

Anonimo

8 ago 2019

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