Lesson 5: Understand Class Inheritance in JavaScript

Published: 05 July 2025
on channel: Paul D. Sheriff
25
2

Lesson 5: Understand Class Inheritance in JavaScript
Technologies: JavaScript

Lesson Description
To cut down the amount of code you need to write, take advantage of class inheritance in JavaScript. Use the extends keyword to inherit all functionality from an existing class, then add your own properties and methods to extend the functionality. Override a base class' method by providing a method with the same name in the extended class. This overridden method can add to, or completely replace the original method. You may also extend any built-in JavaScript class and add your own functionality.

Content
Lesson Objectives 00:05
Class Inheritance in JavaScript 00:18
DEMO: Class Inheritance in JavaScript 01:13
Overriding Class Methods in JavaScript 03:21
DEMO: Override a Class Method in JavaScript 03:52
DEMO: Another Class Inheritance Sample in JavaScript 05:16
Extend Built-In JavaScript Classes 06:54
DEMO: Extend a JavaScript Class 07:17
Create a Custom Error Class in JavaScript 08:07
DEMO: Create a Custom Error Class in JavaScript 08:36
Lesson Summary 11:34

Helpful Links
Samples and hands-on labs for this course: https://www.pdsa.com/YouTube

JavaScript
https://developer.mozilla.org/en-US/d...

JavaScript Object-Oriented Programming
https://developer.mozilla.org/en-US/d...

JavaScript Class Keyword
https://developer.mozilla.org/en-US/d...

Classes in JavaScript
https://developer.mozilla.org/en-US/d...

#javascriptclass #oop #objectorientedprogramming #javascriptoop #javascriptobjectorientedprogramming #javascript #html #css #javascriptdeveloper #javascripttutorial #javascriptintro #developer #development #web #website #webdeveloper #webprogrammer #pauldsheriff #pluralsight #youtube

Paul.About()
Hello, my name is Paul D. Sheriff and I have a passion for teaching. I have been training developers for over 35 years through books, videos, article, blog posts, and international conferences and user groups.

Paul.Contact()
Website: https://www.pdsa.com
Email: psheriff@pdsa.com
LinkedIn:   / paulsheriff  
Blog: https://blogs.pdsa.com/
Pluralsight: https://app.pluralsight.com/profile/a...
YouTube Channel: @pauldsheriff


On this page of the site you can watch the video online Lesson 5: Understand Class Inheritance in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Paul D. Sheriff 05 July 2025, share the link with friends and acquaintances, this video has already been watched 25 times on youtube and it was liked by 2 viewers. Enjoy your viewing!