Encapsulation allows to migrate implementations over time without breaking code - Core Java

Q.  Which allows you to migrate your implementations over time without breaking the code that depends on the public interface of your classes?
- Published on 10 Jul 15

a. Polymorphism
b. Inheritance
c. Encapsulation
d. Both A & B

ANSWER: Encapsulation

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)