O'Reilly logo

Quality Code: Software Testing Principles, Practices, and Patterns by Stephen Vance

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encapsulation and Observability

Implementation hiding is a fundamental principle of object-oriented encapsulation. An object represents a thing as a whole. It may have characteristics or attributes, but the underlying data that represents them is not necessarily the same as the external representation. Similarly, we suppress subsets of class behaviors that do not directly manifest in the external representation, because they are one of many possible implementations or they do not make sense in isolation.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required