Polymorphism in JavaScript
Topics of JavaScript/ES6 Tutorial #16.18
In this video, I discuss the concept of Polymorphism in Object-Oriented Programming (OOP) with JavaScript and using ES6 classes.
Topics
- 0:00 - Hello!
- 0:13 - Previously on the Coding Train! Encapsulation and Inheritance
- 0:57 - Explain! What is polymorphism?
- 1:31 - Explain! Strongly typed and explicit typing.
- 2:42 - Explain! When does this matter?
- 3:49 - Code! Let's make an array with multiple types of particles.
- 5:41 - Tidbit! Extending classes you didn't write. Like p5.Vector!
- 8:59 - Thanks for watching!
Links discussed in this tutorial
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