Chapter 3

Answers to Chapter 3 Review Questions

1: How does abstraction help the programmer to cope with complexity?
A1: Abstraction allows programmers to simplify the problem domain they are attempting to turn into a computer program and allows them to focus only on its relevant parts.
2: Is the idea behind encapsulation confined to software design? Give an example from everyday life.
A2: No, the idea behind encapsulation is not confined to software design. Example: Even though a car engine can be adjusted in numerous ways, the driver can only regulate it in a few simple areas; the rest are encapsulated from the driver and are either preset from the factory or controlled by on-board computers. If the driver could make all possible adjustments, ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.