The previous chapters covered two of the three features of object-oriented programming languages. In review, encapsulation is the hiding of functionality (implementation details) inside classes. This allows the developer to separate distinct parts of code so those parts can’t interact with each other at all (or can interact with each other only in ways the developer can control via the public interface of the class). By achieving this separation, the developer assures that changes to one part of the code won’t produce undesired side effects in another part.
KeywordsCellular Automaton Vote Game Cell Class Event Handler Party Affiliation
Unable to display preview. Download preview PDF.