OOPortal OOPortal


Design Concepts  «Prev  Next»

Hidden and exposed aspects of objects - Exercise

Encapsulation: hidden and exposed aspects of objects
Objective:Identify which aspects of two common objects are hidden or exposed.

Exercise scoring

This exercise is worth a total of 10 points.

Download files
No downloadable files are required to complete this exercise.

Instructions

Identify the aspects of each of the following devices that must be exposed/should be hidden.
  1. TV (television set)
  2. VCR (video cassette recorder)

Hints

Model your answers on the example below:
  1. Telephone
  2. Expose
  3. Purpose:
  1. To enable communication across phone lines

Interfaces:

  1. Initiate a call
  2. Terminate a call
  3. Place a call
Hide
  1. The implementation of the conversion of the button manipulations to electronic signals and the data used to control the conversion details
  2. The implementation of the initiation of a call and the data it uses to perform the connection
  3. The caller ID data
  4. The implementation of the call termination process and the associated data

To submit your exercise, enter your solution into the textbox below.