Completed
getters and setters
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Javascript Classes Explained - Javascript Factory Functions - ES6 Private Variables Properties
Automatically move to the next video in the Classroom when playback concludes
- 1 Classes are "syntactic sugar" in JS
- 2 Creating a simple class with a constructor
- 3 Using the keyword this
- 4 Adding a method to the class
- 5 Classes are templates / blueprints for objects
- 6 Using the new keyword to create the object
- 7 Calling the object's method
- 8 Adding parameters to the constructor
- 9 Passing multiple parameters to the constructor
- 10 Accessing properties with dot notation
- 11 getters and setters
- 12 A more readable getter and setter method
- 13 An array property with a getter and setter
- 14 A parent "super" class
- 15 Creating a child class with extends
- 16 The super keyword
- 17 No need to create a parent object in order to create a child object from the classes
- 18 A naming convention for private properties
- 19 Good intentions but not enforced by the code
- 20 Factory Functions
- 21 Instantiating a pizza factory object
- 22 Factory Functions solve the private properties problem
- 23 New additions to JS allow public and private class fields
- 24 How much support for public and private class fields?