Please enable JavaScript to use CodeHS

CodeHS Glossary


Encapsulation General

Putting a resource behind an interface with rules so the only way to use it is through that interface. A bank encapsulates its vault with a teller window, and a function encapsulates its variables with its parameters and return value.