Vignesh Jayavel

JavaScript Design Patterns - Classical Pattern

JavaScript Design Patterns - Classical Pattern

Unlike the Prototype pattern, the “Classical” pattern is easy to read for somebody from a class-based language background. It provides you with most of the features of a real O-O model. Here we make use of a 3rd party library called Base.js (A base class for JS inheritance, download it here) that provides Classical pattern implementation off the shelf. So, we need not write the required “core” from scratch. Features of the classical pattern: