JavaScript Classes #4: Inheritance & Extends - JavaScript OOP Tutorial

Опубликовано: 02 Июнь 2018
на канале: dcode
25,249
497

By using the "extends" keyword with your JavaScript classes you are able to create inheritance which is where you have a child class that inherits the instance properties and methods of its parent class.

You'd typically use a feature like this on the server-side with NodeJS as this can be considered to be a complex design - although classes can be used to represent similar visual components on the front-end.

In this video I take you through a simple example of how you can make use of the extends keyword to achieve inheritance - you'll see how we create a "child" version of a Person class, a Programmer. programmer has all the features of a person but with a little but extra!

For your reference, check this out:
https://developer.mozilla.org/en-US/d...

Support me on Patreon:
  / dcode  

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!


На этой странице сайта вы можете посмотреть видео онлайн JavaScript Classes #4: Inheritance & Extends - JavaScript OOP Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь dcode 02 Июнь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 25,249 раз и оно понравилось 497 зрителям. Приятного просмотра!