Define encapsulation, and explain how it is used in object-oriented analysis.
What will be an ideal response?
Encapsulation means that all data and methods are self-contained. By limiting access to internal processes, an object prevents its internal code from being altered by another object or process. Encapsulation allows objects to be used as modular components anywhere in the system, because objects send and receive messages, but do not alter the internal methods of other objects.
You might also like to view...
When creating a comment in a program, a space is required to separate the apostrophe from the comment itself.
Answer the following statement true (T) or false (F)
What kind of screen allows users to take the most advantage of the desktop's ability to display multiple application windows?
A. small screens B. large screens C. tablet screens D. smart screens