A Tutorial for Those Who Are Accustomed to Classes
- About This Tutorial
- Class-Based OOP: A Simple Class Definition
- Constructor Functions
- Static Members
- Unsupported Features
About This Tutorial
Purpose and Intended Audience
supports object-oriented programming, but it does so by means of constructor functions and prototypes rather than
accustomed to the traditional class-based style.
Why This Tutorial
contained in this tutorial is already out there in many variations. What seems to be lacking is a recipe-style
presentation for people who are accustomed to OOP with classes and their instantiations, showing them
This tutorial does not go into the history of prototype-based object-oriented
programming. That history is complex and somewhat convoluted, and exploring
are interested, search the Web for “self programming language” and “prototype-based programming”.