Pre-assessment notes
Encapsulation
This is something we'll talk about later in the course, along with other
design qualities, but it does come up briefly in both Inf1OP and Inf2C-SE,
so I wondered how much people would know. There were many correct answers,
and most of the ones that weren't fully correct had the right idea. Here
are a few of the best:
- Encapsulation is the hiding of internal workings of a software object
and only revealing the parts of it necessary to use it (the API).
- It the degree to which software components hide their inner workings
but only expose methods and services for carrying out certain tasks
- Limiting the insight parts of a system have into the inner workings of
other parts of the same system.
- It means to hide/restrict access to details/methods.
This page is maintained by
Perdita Stevens (
perdita@inf.ed.ac.uk
)