Information Hiding in JavaScript

added by JavaScript Kicks
8/26/2014 11:20:48 AM


A key concept in object-oriented programming is information hiding. It refers to the practice of declaring some parts of a class public, and others private, depending on what we want clients of the class to be able to see and do. It protects the application from programmers who may decide to use a class in ways which are contrary to the original intentions of the class’s author.