Resources > Encapsulate That!

Encapsulate That!

Article   Guest Access   Design Issues
 

Author(s)

Alan Shalloway and Scott Bain

Encapsulation is a word that’s been with us in software development for a long time; but if you asked people what it means, many would say something like “hiding data”. In fact, there are quite a few books and websites that would use that as the definition of the word. However, we have found that an examination of the true meaning of encapsulation can be enormously beneficial and can make many other aspects of Object-Oriented design (design patterns, for instance) easier to understand and to use.

We’ll begin simply, by showing encapsulation in its most obvious and straightforward forms, and then expand these concepts into the patterns, and all the qualities of code that make it fundamentally easier to maintain, debug, enhance, and scale. What we will see is that encapsulation, given its more useful definition, is a fundamental, first principle of OO.

Publish Date

12/10/2008
 

Free Registration Gets You More!

Register for a free Net Objectives account, and you'll gain access to much more content: more webinars, more articles, our bibliographies and FAQ's, and all the preparatory material we recommend to anyone planning to take a Net Objectives course.

Why Register? Register Now