Encapsulation

If you have to ask, “What am I looking at?” there is a good chance that what you're viewing is far from the norm. For example, you know there is an engine under the hood of a car, yet you ignore such mechanics and focus on what you're required to interact with while driving the vehicle—or so it appears. In reality, you're concerned with what it takes to get you comfortably from point A to point B. This is known as a problem domain: what requires the focus in this case is how to remain comfortable or navigate directions.

If you're attempting to understand engines but they don't relate to your occupation or a hobby, you've probably changed your focus to a new problem domain: your broken-down engine and how you can fix it.

What you ...

Get AdvancED ActionScript 3.0: Design Patterns 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.