Inheritance in JavaScript
Topics of JavaScript/ES6 Tutorial #16.17
In this video, I discuss the concept of inheritance in Object-Oriented Programming (OOP) with JavaScript and using ES6 classes.
Topics
- 0:00 - Welcome! Let's talk inheritance in JavaScript.
- 0:18 - Explain! Core principles of object oriented programming.
- 0:36 - Resources! Other videos about these topics
- 1:41 - Explain! What is an ES6 class?
- 3:25 - Explain! The code I've already written.
- 4:03 - Code! Using a variable for types of particles.
- 5:31 - Code! Let's copy and paste to make two classes!
- 6:53 - Explain! There has got to be a better way. What is that?
- 7:30 - Explain! How to make a class that inherits from another class.
- 10:13 - Code! Let's make a child class!
- 11:18 - Explain! Augmenting and Overriding
- 12:24 - Code! Let's do some augmenting and overriding!
- 13:30 - Code! What if we want to do the same thing as the parent class but more?
- 14:37 - A couple things to note.
- 15:15 - Explain! What is an inheritance tree?
- 16:46 - What's next?
Videos discussed in this tutorial
- Introduction to Inheritance Part 1 - Nature of Code 4.5 by The Coding Train
- Introduction to Polymorphism - Nature of Code 4.7 by The Coding Train
- Classes in JavaScript with ES6 - p5.js Tutorial 6.2 by The Coding Train