JavaScript Inheritance Tutorial Object Oriented Class Programming

  Рет қаралды 54,211

Adam Khoury

Adam Khoury

Күн бұрын

Пікірлер: 65
@xmatthewday
@xmatthewday 8 жыл бұрын
Thank you for making a tutorial that gets right to the point and one that doesn't make us watch you take ten seconds to type something (I'm referring to the pastes you had ready on your clipboard). And thank you for not telling stupid jokes. This is the first tutorial I have found on KZbin, and I have seen many of them, in which I did not scoff or roll my eyes over the author taking the long way to explain something. I'm also impressed that you did have any filler sounds for pauses like "um" or ahh". Very well done. Thank you.
@AdamKhoury
@AdamKhoury 7 жыл бұрын
Thanks for the positive feedback Matthew!
@sharadsinha7149
@sharadsinha7149 8 жыл бұрын
Finally someone knows how to explain something via a simple example. Most of the tutorials which I have seen till now used unnecessarily lengthy and complex example and ending up confusing more. Good work. Keep it up.
@PaulGreenman
@PaulGreenman 9 жыл бұрын
Adam - Thank you. This is one of the best lessons I've seen on inheritance.
@AlexVineyard
@AlexVineyard 6 жыл бұрын
+1 to all the comments of thanks for making a great tutorial. Also thanks for not spamming ghostwritten tutorials of smart yet incredibly hard to understand foreigners... I swear I have to wade through 5 of these for every 1 decent video I find.
@Croz1007
@Croz1007 11 жыл бұрын
Thanks a ton. For some reason I was always confused by the prototype coding. Not so hard when you break it down like this. HUGE THANKS.
@McGavel1
@McGavel1 9 жыл бұрын
That's good to know how prototyping a new child class method/property with the same name as one in a parent class will override it. Thanks for the great info!
@McGavel1
@McGavel1 9 жыл бұрын
Cool, that makes sense how the child class inherits all the functionality of the parent just like adding *heal* in the last video.
@stephenhiggin9597
@stephenhiggin9597 10 жыл бұрын
Hi, just wanted to thank you for posting this video. No doubt like some of the others below, I read quite a lot of stuff about this subject, and none of it made a great deal of sense to me; you have explained and demontsrated it brilliantly here.
@abeladamu5524
@abeladamu5524 10 жыл бұрын
it was clear and easy to follow ...and no need to write the whole html tags
@johnkaufi
@johnkaufi 8 жыл бұрын
Very nice video! Especially, for demonstrating how an inherited parent's property/method in a child can be overwritten, so that this property/method is different in the parent and in the child.
@sahotahappy
@sahotahappy 10 жыл бұрын
Thanks Adam, You are awesome. I was strugling with OOP in JS for long time but you made it as simple as it can be...
@mrastrogastro
@mrastrogastro 10 жыл бұрын
Adam is the king! Thank you Adam! :)
@bluecafe509
@bluecafe509 9 жыл бұрын
By far the best example I have seen.
@budkin
@budkin 11 жыл бұрын
Liked and subbed. Wish more teachers were as clear as you.
@stevenlane6963
@stevenlane6963 7 жыл бұрын
Clear, concise and to the point!
@aqlanable
@aqlanable 10 жыл бұрын
Woow u really made it looks like its so easy ... I read about 20 pages from the book called professional javascript and I felt headache that im stupid :) thx man
@sergeseva
@sergeseva 10 жыл бұрын
Thanks heaps for your tutorials and for your humour, Adam!
@andyb3196
@andyb3196 9 жыл бұрын
In addition to prototype one can use the Call property as well along with prototype to achieve inheritance and overriding
@chaosinorderrr
@chaosinorderrr 11 жыл бұрын
brilliantly explained. you have a very humorous way of speaking which makes your tutorial much more enjoyable!
@CaptainSeanTV
@CaptainSeanTV 10 жыл бұрын
Thanks, the explanation is clear and easy to understand. I love your videos.
@trZomB
@trZomB 8 жыл бұрын
Very clear and easy to understand, thanks!
@rissandimo
@rissandimo 10 жыл бұрын
wow...excellent, EXCELLENT!!! tutorial. Keep it up!!
@praveenmohantysoft-engg
@praveenmohantysoft-engg 9 жыл бұрын
clearly explained the inheritance Thanks !!
@LeighMaher
@LeighMaher 9 жыл бұрын
Excellent tutorials. Thanks Adam.
@McGavel1
@McGavel1 9 жыл бұрын
That's also cool about the *instanceof* method.
@malleshbhs
@malleshbhs 8 жыл бұрын
Thanks Adam! good way of presenting to users like me...
@rickeramirez193
@rickeramirez193 11 жыл бұрын
Thank you Adam. You speak in iambic pentameters which is very easy to follow. One question if you don't mind would there be any chance you could diagram your concepts using symbols to represent visual meanings of your concepts in future learning sessions? For the visual coder learner it would be the icing on the cake. Thanks again for the logical and sharp presentations.
@BasharAyyash
@BasharAyyash 11 жыл бұрын
thanx for the tutorials, you made OOP Javascript simple
@frdeeessswdereee
@frdeeessswdereee 11 жыл бұрын
wonderful
@gami195
@gami195 8 жыл бұрын
Thank you, very very well and SIMPLE explained !
@drbrainguy
@drbrainguy 11 жыл бұрын
Great work Adam, Thanks
@Udodelig1
@Udodelig1 8 жыл бұрын
You are awesome dude, thank you.
@tim-finnigan
@tim-finnigan 9 жыл бұрын
Thanks! I can finally understand this concept.
@oahulongboardsurfer
@oahulongboardsurfer 11 жыл бұрын
dear adam, i have reviewed several inheritance docs online and none of them explain inheritance as well as you have. bravo and kudos:
@valentina531
@valentina531 10 жыл бұрын
love your videos - thank you!!
@rmoorthiit
@rmoorthiit 9 жыл бұрын
Can we use --var childclass = Object,create(ParentClass), in this way also can access parentclass methods and prosperity right?
@kimgysen10
@kimgysen10 11 жыл бұрын
Great thanks, that was very clear.
@Djemoltellitlikeitis
@Djemoltellitlikeitis 6 жыл бұрын
Thank you for this!!
@TheYene
@TheYene 11 жыл бұрын
very nice and easy to follow, thank you
@suii_777
@suii_777 11 жыл бұрын
Thanks A ton..nice class keep going on...
@guydan-guri951
@guydan-guri951 9 жыл бұрын
Thanks! it was great!
@bzzzvzzze
@bzzzvzzze 10 жыл бұрын
great explanation as always, thx :)
@sateeshmurapaka206
@sateeshmurapaka206 9 жыл бұрын
Thanks great explanation!
@kerimtim
@kerimtim 8 жыл бұрын
Thanks great video.
@abilashrs4133
@abilashrs4133 4 жыл бұрын
Nice explanation..Thank you
@Procrastinitise
@Procrastinitise 10 жыл бұрын
What if the parent constructor takes arguments? How do I pass the child arguments to the parent. I tried this and I couldn't access the parent properties from a child instance: function Child = function(arg1, arg2) { Child.prototype = new parent(arg1, arg2); } var childInst = new Child(1,2); childInst.parentProperty was undefined
@chrisp7414
@chrisp7414 7 жыл бұрын
what happes if u want to override the parent method and have both the parent content and w/e the child content want to add in? Why are we omitting the case where for instance Baddie1 inherits from BaddieBase and BaddieBase contains some important stuff in it's update and then Baddie1.update wants to just add a bit more in this fasion: Baddie1.prototype.update = function() { I want to call the super.update() here then baddie1 updates } the vid should explain how to save the super prototipe and call it within the overriding method
@danielcristian7149
@danielcristian7149 9 жыл бұрын
Hello, nice videos but can you make one for how to emulate private/public methods and properties in JS? Thanks.
@ask5196
@ask5196 10 жыл бұрын
amazing!!!
@sasajovicic3711
@sasajovicic3711 8 жыл бұрын
Thank you alot!
@mdi100
@mdi100 8 жыл бұрын
perfect!
@kyahaybay
@kyahaybay 11 жыл бұрын
Perfect
@ankurvishwakarma8731
@ankurvishwakarma8731 7 жыл бұрын
Nice tutorial :)
@bigt95nt011037
@bigt95nt011037 11 жыл бұрын
good stuff! what about doing polymorphic behavior in javascript ?
@SwampDragons
@SwampDragons 11 жыл бұрын
thanks
@GaneshPilli
@GaneshPilli 11 жыл бұрын
thanks OOP in java was my nightmare u made it sandwich for me.... I will have fun with coding.................. thanks a to
@sergiofaya7609
@sergiofaya7609 7 жыл бұрын
You say that this is OOP but you are aplying functional paradigm, and not using the js class, instead you just create functions
@Jenson-M-John
@Jenson-M-John 9 жыл бұрын
It's very easy to do mannn...:) Bye..Bye..:P :D
@Aydreean
@Aydreean 10 жыл бұрын
I thought this was a great tutorial and concept were explained and demonstrated clearly, except for your choices in properties and method names. It's sometimes hard to imagine the code's behavior in the real world if we don't get ideas to help visualize with. For example, instead of naming the properties 'parent_Property1/child_Property1', maybe it'd help to name them something with actual meaning in the real world, like 'knownSpanishWord/nextWordLearned' to conceptually allow the student to grasp the connection that instance1 has access to both properties. I don't know. Sometimes these concepts are better when they're explained using words and ideas people have an idea of.
@JasonCtutorials
@JasonCtutorials 9 жыл бұрын
try doing this on python it will break. LOLs. But yes javascript is way more forgiving thanks.
@nailbomb420
@nailbomb420 9 жыл бұрын
+jasonc_tutorials Not really, no. Python is far less verbose than this imo. And an easier language all round, the real drawback is its portability.
@SamithaHewawasam
@SamithaHewawasam 11 жыл бұрын
same idea
@rpalme84
@rpalme84 11 жыл бұрын
first
@brendanmcguire3415
@brendanmcguire3415 11 жыл бұрын
Meh, does it really matter?
Inheritance in JavaScript - Prototypal Inheritance tutorial
20:06
JavaScript Class OOP Tutorial Intro to Object Oriented Programming
21:04
Молодой боец приземлил легенду!
01:02
МИНУС БАЛЛ
Рет қаралды 2,1 МЛН
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 2,1 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 8 МЛН
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Brian Will
Рет қаралды 2,1 МЛН
JavaScript Tutorial - Trigger CSS3 Transitions Control Animations
20:01
Learn JavaScript INHERITANCE in 7 minutes! 🐇
7:04
Bro Code
Рет қаралды 20 М.
Object Oriented Programming - The Four Pillars of OOP
11:23
Keep On Coding
Рет қаралды 350 М.