Encapsulation concept
问题 I have problem with concept and implementation of encapsulation. Can someone explain it to me? 回答1: Encapsulation is a moderately easy concept once you realise it (probably) comes from the same base word as capsule. It's simply a containment of information. Encapsulation means that a class publishes only what is needed for others to use it, and no more. This is called information hiding and it means classes can totally change their internals without having an effect on any of their users. In