Este README também está disponível em Português.
This project is a comprehensive study of JavaScript objects with detailed examples and explanations on object creation, encapsulation, inheritance, and polymorphism.
The code demonstrates different ways to create objects in JavaScript, usage of constructor functions, encapsulation techniques with private properties, inheritance between constructors, polymorphism through method overriding, and checking data types and instances.
- Object creation using literals and constructor functions
- Encapsulation of private properties with getters and setters
- Inheritance of properties and methods between constructors
- Polymorphism with method overriding in subclasses
- Verification of data types and instances using
typeof
andinstanceof
- Clear and explanatory comments throughout the code
- JavaScript (ES5 syntax)
Run the main.js
file using Node.js or any JavaScript environment to see the examples and console outputs.