English

'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a real world example. - Computer Applications

Advertisements
Advertisements

Question

'Encapsulation reduces the complexity and makes the system easier'. Explain this statement with a real world example.

Answer in Brief

Solution

  1. Encapsulation combines procedures and data into a single object while limiting direct access to some parts of the object.
  2. Let's use an ATM as an example. To withdraw money from an ATM, we swipe our card, enter the PIN, and enter the desired quantity of cash.
  3. The ATM processes our request and provides us with the necessary funds. In this case, money is handled as data, and the techniques include pin and account balance checks, user authentication verification, and more.
  4. The ATM (handled as a class) contains the methods and data. Encapsulation lowers complexity and improves the system's usability (ATM) by removing the need for the user to understand how the machine operates.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.01: Introduction to Object Oriented Programming Concepts - EXERCISES [Page 9]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.01 Introduction to Object Oriented Programming Concepts
EXERCISES | Q III. 12. | Page 9
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×