Classes
7 lessons
- 01ClassesLearn how to use ES6 classes as a modern template for creating object instances.
- 02Private PropertiesUse the hash (#) prefix to encapsulate data and prevent external modification of class properties.
- 03Static MethodsAttach utility methods and properties directly to the class definition instead of its instances.
- 04Getters and SettersControl how properties are accessed and mutated using custom get and set functions.
- 05InheritanceLearn how to use the extends keyword to inherit properties and methods from parent classes.
- 06The Super KeywordUse the super keyword to call methods and constructors on a parent class from within a child class.
- 07Chapter 5 Cheatsheet: ClassesA quick summary of JavaScript ES6 classes, including encapsulation, static members, and inheritance.