Object-Oriented Programming
Before diving into JavaScript let's take a moment to review what people mean when they say "object-oriented", and what the main features of this programming style are. Here's a list of concepts that are most often used when talking about object-oriented programming (OOP):
- Object, method, property
- Class
- Encapsulation
- Aggregation
- Reusability/inheritance
- Polymorphism
Let's take a closer look into each one of these concepts.
Objects
As the name object-oriented suggests, objects are quite important. An object is a representation of a "thing" (someone or something), and this representation is expressed with the help of a programming language. The thing can be anything—a real-life object, or some more convoluted concept. Taking ...
Get Object-Oriented JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.