Objects and Prototypes In-depth 18 - Inheritance In JavaScript

preview_player
Показать описание

Let's put together all the various prototype concepts we've learned so far to build a multi-level hierarchy of objects.
Рекомендации по теме
Комментарии
Автор

Just amazing! I would really request you to write a text book on what ever you teach. The way you explain is really logical. Best teacher ever. Can't just thank you enough!

dc
Автор

I am glad you brought this to us. It was very unclear and complicated as well, when i started. Now that i have watched this video tutorial, i feel confident. Hope it covered everything i wanted to know about Objects and Prototypes. Thank you so much for your time to create this video. You are genius indeed.

kamalkishore
Автор

after finishing the playlist .. I really wanna thank you very very much

saryelmelegy
Автор

Additionally, this is from the Mozilla Developer Network site:
Warning: While Object.prototype.__proto__ is supported today in most browsers, its existence and exact behavior
has only been standardized in the ECMAScript 2015 specification as a legacy feature to ensure compatibility for web browsers. For better support, it is recommended that only Object.getPrototypeOf() be used instead.

Arganoid
Автор

This is a Great Great example. Thanks so much for this playlist!!

abhishek
Автор

The best video's on Prototypes. I can finally say i understand it now.

garethsolomon
Автор

Your tutorial in the prototype is the best. Thank you!

japananh
Автор

Finally, after doing some more research it looks like the following is a recommended way of doing inheritance in Javascript (although using 'class' in ECMAScript 6 may be even better):

function Animal(name)
{
this.name = name
}

Animal.prototype.makeNoise = function()
{
console.log("Generic noise")
}


function Dog(name)
{
Animal.call(this, name) // call parent constructor
}
Dog.prototype = // Dog prototype is create with Animal's prototype as its parent

Dog.prototype.makeNoise = function()
{
console.log("woof")
}

Arganoid
Автор

You are genius... Great tutorial Koushik... thank you...

PONSONT
Автор

I thank you from the bottom of my heart. Your tutorials are outstanding. You explain the complex topics in a simple way. I always wonder how it would be possible for me to describe any subject in the similar way. Can you come up with a video tutorial on how to understand and explain the concepts to others in an easy way :) Thanks again!

ullasnn
Автор

Thank you so much. You explain so well, taking step by step approach. I am sure programmers coming from C++ and Java like background have a better view of Objects and inheritance in JS.

smartguyk
Автор

the way you explain it makes it look so simple :)

jsvihla
Автор

This guy made this look so easy. thanks alot

hermannkumbong
Автор

one of the best videos on javascript . could you please make some videos on angular 4

himanshumewari
Автор

Great Tutorial Koushik, Really very nice explanation...:)

venkatasrikanthp
Автор

excellent lessons recommend you very pls more lessons about regards big thanks for once more :)

webprogramming
Автор

In practice I assume you would not write mgr.__proto__.__proto__ = Employee.prototype, you would write Manager.prototype.__proto__ = Employee.prototype

Arganoid
Автор

Great tutorial for Object Oriented Programming Thanks a Lot :)

AnonymousHelperVlogs
Автор

Thank you 🙏 so much for sharing your knowledge 😊

shanmuganathanm
Автор

Top video. Thank so much. I will write an exam on this!

tommyzhe