JavaScript ES6 / ES2015 - [04] Classes and Inheritance

preview_player
Показать описание
In this video we will go over the new ES6 class and inheritance syntax

SUPPORT THIS CHANNEL WITH A CUP OF COFFEE PER MONTH:

ONE TIME DONATIONS:
Рекомендации по теме
Комментарии
Автор

In derived classes, super() must be called before you use 'this'. Leaving this out will cause a reference error.
Just for information. I had faced this issue.may be useful for someone.

sankarrajendran
Автор

Very useful and a good explanation. I have been battling classes for 2 days now and it is all getting much clearer now. Big thank you!

alexherman
Автор

Thank you so much! Was having a difficult time understanding extends/super with my online course, but you saved the day for me!

treddshort
Автор

Great tutorial! Tone of your voice made classes sound super easy.

lekeKar
Автор

Thanks a lot for this, I`ve been struggling with Classes since April - but you have demystified classes for me in 15minutes

DaggieBlanqx
Автор

Thank you for making inheritance easy to understand.

MichaelCarnahan
Автор

Awesome video, no fucking around and straight to the point. Thank you.

boband
Автор

love the to-the-point videos, too many other people making hour long videos that cover the same material. appreciated!

stu
Автор

Just simple and makes sense, thank you so much.

slob
Автор

Very clear and easy to understand. Thank you for your content! Subbed

blazebyte
Автор

Thank you brad, I was confused with super() method. this cleared it out, Thanks a ton :)

daksh
Автор

I was trying to figure out how to do the Hackerrank challenge on classes and inheritances and did not understand how to use super to inherit stuff from the parent class, but this video explained it perfectly!

SingTingz
Автор

thanks you. VERY clear and solved my issue with static and super.

andreparadise
Автор

That you for the tutorial, you just made classes easier for me.

_C
Автор

Cant we user the render return function in normal javascript class?

sabkha
Автор

How would I be able to put all the instances in the User class in an array, iterate through the array, and print all the objects?

jaiylonbabb
Автор

Can JS classes have multiple constructors defined, as they can in languages such as Java?

natetolbert
Автор

Thank you, finally i can understand it

FaishalHanif
Автор

You could have fill "memberPackage" instead of "this.package" in the string, right ?

sebastienbertrand
Автор

but why does super also take the same parameters? does super overwrite the subclass ? or subclass overwrite super?.
when you call mike.getPackage it's console logging this.username which is taking the username from Member subclass, so why does Member then also need to have super and its parameters? it's not using the parent class at this moment is it?

matthewdavies