1.

Which one of the following is known as the key to object-oriented programming?(a) Polymorphism(b) Encapsulation(c) Data Abstraction(d) OrthogonalityI got this question during an interview.The doubt is from Object and Design-1 in section Object Tools and Design and Variables in PHP of PHP

Answer» RIGHT answer is (B) Encapsulation

To explain: Encapsulation simply means the hiding of data and FUNCTIONALITY from a CLIENT.


Discussion

No Comment Found

Related InterviewSolutions