JReality
Information-hiding Secrets

Information-hiding Mechanics

  1. Information-hide volatile (changeable) information using private modifier syntax
  2. Encapsulate volatile information using public access methods
  3. Create stable external interfaces for public access methods
Result is to localize to a single module the ripple effect
of changing the hidden (volatile) information

. Copyright © 2003, JReality. All Rights Reserved.