Explain encapsulation and information hiding.
What will be an ideal response?
Real-world objects often employ encapsulation and information hiding.Encapsulation is the process of combining all of an object's attributes and methods into a single package; the package includes data items that are frequently hidden from outside classes as well as methods that often are available to outside classes to access and alter the data.?Information hiding is the concept that other classes should not alter an object's attributes-only the methods of an object's own class should have that privilege. (The concept is also called data hiding.) Outside classes should only be allowed to make a request that an attribute be altered; then it is up to the class's methods to determine whether the request is appropriate.
You might also like to view...
Invoking a method in response to an event is called "controlling the event."
Answer the following statement true (T) or false (F)
When a database is open, it is displayed in the Access _____ window.
A. record B. program C. table D. object
What does the dynamic programming approach do to prevent solving the same subproblem repeatedly?
a. Cache solutions to subproblems b. Use recursion c. Use a priority queue d. Recombine at the last step
Briefly describe a storage area network (SAN).
What will be an ideal response?