Este README também está disponível em Português.
This project is a hands-on practice with JavaScript objects, focusing on creating classes, constructors, methods, inheritance, and polymorphism.
The code demonstrates defining base classes and subclasses using constructor functions and prototype inheritance. It includes examples of method overriding and encapsulation with practical use cases involving different house types.
- Base class and subclasses with shared and unique properties
- Prototype-based inheritance
- Method definition and polymorphism
- Use of constructor functions and prototype chaining
- Comments explaining key concepts in the code
- JavaScript (ES5 syntax)
Run the main.js
file in any JavaScript environment (browser console or Node.js) to see object creation and method calls in action.