Describe two pillars of Object Oriented Programming
Interview Answers
Anonymous
8 Aug 2019
I have an interview with them on Monday. Also, encapsulation can include hiding the implementations from other code, and the user.
Anonymous
20 Jul 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.