What is the difference between encapsulation and information hiding?

What will be an ideal response?


The concept of information hiding is closely related to encapsulation. Together, encapsulation and information hiding turn an object into a black box. Information hiding not only conceals the complexity of the inner workings of an objects, but also protects them from careless, malicious, or unauthorized interference. Encapsulation packages data and processes into one unit and information hiding conceals them.

Business

You might also like to view...

Which of the following statements about how women buy cars today is most accurate?

A. For women, safety is about features that would help survive an accident. B. When it comes to the actual purchase process, women are more adept negotiators than men. C. Women have definite likes or dislikes when buying a car, but they don't feel comfortable expressing their opinions. D. Women care more about exterior styles and lines and men are more concerned with cargo space and gas mileage. E. Women usually shop one dealership before making a decision and men usually shop three.

Business

What is the unit product cost using variable costing?

Aqua Primavera, Inc. has provided the following information for the year.

A) $55
B) $105
C) $125
D) $168

Business

Alexandra’s role in the organization involves measuring and evaluating job satisfaction and employee engagement. Alexandra’s human resource management specialty is ______.

A. staffing B. labor and industrial relations C. ethics and sustainability D. employee relations

Business

When the law of one price is applied to interest rates, it suggests that

A. inflation and interest rates do not follow the law of one price. B. inflation is not affected by interest rates. C. interest rates do not differ much across national borders. D. varying interest rates take into account anticipated differences in inflation rates.

Business