Advanced JavaScript Tutorial in Hindi [Part 91] - Prototype and Prototypal Inheritance in JavaScript

preview_player
Показать описание
#Javascript #Tutorial #Hindi

In this video i will talk about Prototype and Prototypal Inheritance in Javascript.

In programming, we often want to take something and extend it.

All JavaScript objects inherit properties and methods from a prototype.

A JavaScript prototype is used to add new properties and methods to an existing object constructor.

All JavaScript objects inherit properties and methods from a prototype:

For instance, we have a user object with its properties and methods, and want to make admin and guest as slightly modified variants of it. We’d like to reuse what we have in user, not copy/reimplement its methods, just build a new object on top of it.

Prototypal inheritance is a language feature that helps in that.

If you’ve worked with other object-oriented programming languages such as Java or C++, you’ve been familiar with the inheritance concept.

In this programming paradigm, a class is a blueprint for creating objects. If you want a new class to reuse the functionality of an existing class, you can create a new class that extends the existing class. This is called classical inheritance.

JavaScript doesn’t use classical inheritance. Instead, it uses prototypal inheritance.

In prototypal inheritance, an object “inherits” properties from another object via the prototype linkage.

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

This is the last lecture for everyone on this topic. What a explanation 😍. Good teacher takes time to explain good topics.

PROTECHRAHUL
Автор

You deserve much more respect even many famous YouTubers are unable to explain these topics but you made it easy to understand 💥

Thronestorieshindi
Автор

1000 times better than premium courses, I have watched several videos in Bengali, Hindi, and even English, but I was left confused as the concepts were unclear. However, now that I have found this, my confusion is resolved. There is no need to watch any other videos on this topic. You are truly the best. Sending lots of love from Bangladesh. ❤❤

rajibmridha
Автор

Sir first of all a ❤heartiest 🙏🙇thanks to you. I just wanna to say to all this free course is the best course for the beginners in all over internet. Keep supporting to the viswajeet sir..

shivamkushwaha
Автор

Sir It is the Best Tutorial About Prototype and Prototypal Inheritance.
I am learning this Concept from 3 days but I don't understand that Concept.
And you Make this Concept Very Easy.

deepaksunwal
Автор

You are the best teacher in India sir...all the best vishesh to your good work sir. Really awesome Hindi and very effective voice god gifted. 🙏🙏🙏

sandipsathe
Автор

Youtube algorithm sucks it is not recommended such best videos earlier ....Love u brother❤...great explanation

ganeshks
Автор

Awesome... Sir poora js complete kar diya. Only aapka video dekh kar, wow kya samjhate hai, Thank u a lot

suraj-sene
Автор

Best course ever..I just love that how you explain each and every small detail that beginners can feel confident after learning this.

nancypatel
Автор

Somebody recommended this channel to me and this is 1st vdio i m watching and there are hundreds of such vdios. Thank you verymuch for such vdios sir ji. Its😌😏😮😯😲😵thing. I wish you never delete or make any of these private.

meetquasar
Автор

Explained well man!!! I am following you since you uploaded your full HTML course. Since then till now, I am getting all the WEBDEV knowledge that I need for my requirements. THANK YOU SO MUCH!!

ramshankarkumar
Автор

Thank you so much!
Concept is cleared!
After many days later I have learned such tutorial, that make me what I needed!
So

tusharsamanta
Автор

Best explanation all over the YouTube for prototypal inheritance.

ishikashrivastava
Автор

Graph really helped to understand complex things. Hats off to you sir for making complex things easier! ❤

thedevlife
Автор

Bhai sach me bhot awesome bhot gjb explanation ki h aapne bilkul scratch se smzna isko hi bolte h ..mere aapse ek request h bhai plz yarr ek project aara h mere mind agar aap usko bhi kra do to plz ..

raghavbhardwaj
Автор

one of the best complete JS course + most important its free ...thanks sir 👍❤️❤️

mr.devsot
Автор

ek hi to dil h vishwajeet bhaiya, kitni bar jeetoge❤❤❤❤

satyarthtiwari
Автор

object prototype ke constructor ke properties and methods please explain kijiye, aapse bahut ummid hai sir.. kuki maine kam se kam 20 videoes dekhe hain prototype ke liye aapke jaisa isi ka nahi tha....Appreciation for your effort.

SonuKumar-twoi
Автор

salute you sir🙏🙏what a explanation
I watched more than 10 videos but my doubt was not cleared
but when I watch ur video I throw all doubts in dustbin.

apnatechpro
Автор

you are amazing sir.your way of teaching is rare no one can explain things like you .you make my mind clear about prototype and oop concept .lots of love❤❤❤

toseefdar