Encapsulation Smells
Abstract
The principle of encapsulation advocates separation of concerns and information hiding. Hiding implementation details and hiding variations are two techniques that enable the effective application of the principle of encapsulation. This chapter discusses the principle of encapsulation and these enabling techniques, and provides a detailed description of the following design smells that result from the violation of the principle of encapsulation: Deficient Encapsulation, Leaky Encapsulation, Missing Encapsulation, and Unexploited Encapsulation.
Keywords
Deficient Encapsulation; Enabling techniques for encapsulation; Encapsulation principle; Leaky Encapsulation; Missing Encapsulation; Unexploited Encapsulation ...Get Refactoring for Software Design Smells 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.