Every object hides its state and show through behavior . this concept is known as

Every object hides its state and show through behavior . this concept is known as
A. Encapsulation
B. Inheritance

C. Polymorphism
D. Information hiding

ANSWER: D) Information hiding
Explanation : Every object hides its state and show through behavior . This concept is known as Information Hiding. Information hiding states “Show only those details to the outside world which are necessary for the outside world and hide all other details from the outside world.” Information hiding is one of the most important principles of OOP inspired from real life which says that all information should not be accessible to all persons. Private information should only be accessible to its owner.

Leave a Comment