JavaScript Video Tutorial Pt 3

[ad_1]
Best JavaScript Book :

In this JavaScript Video Tutorial I will completely cover JavaScript Object Oriented Programming : Objects, Classes, Properties, Methods, Prototype, Encapsulation, Inheritance, Constructors, Method Overloading, Polymorphism.

Code is Here:


Posted

in

by

Tags:

Comments

34 responses to “JavaScript Video Tutorial Pt 3”

  1. nikolas blues Avatar

    Amazing i learn a lot! Thnx!

  2. Giovanni Paez Avatar

    document.write…… shows as a syntax error in Dreamweaver? and i followed the tutorial but cant see anything in my browser it's totally blank??????

    Animal.prototype.setOwner = function(newOwner)
    {
    if (typeof newOwner != 'undefined')
    { this.owner = newOwner;
    }
    else
    {
    document.write("Please enter a valid owner";
    }
    }

  3. Bendiana Jones Official Avatar

    var derek_banas = "awesome";

  4. The Adventurist Avatar

    Hi! I am new to JavaScript with no real coding experience, what are the best places to go learn it for cheap or free? I am currently doing some code academy and I know treehouse is good, recommend any others? I want to learn as much as possible as quickly and well as I can

  5. Don Dinga Avatar

    At 9:40 you say that if you didn't instantiate Cat as a new Animal, that the object Cat would become a subclass of Animal. But how can that be if you need to define the new constructor in order to make the Animal the superclass? Wouldn't that make it a subclass anyway, and wouldn't it be constructor therefor not be necessary?

    I hope I'm not overthinking something you may have said in passing =P but it sounds like something that might be interesting to learn about inheritance.

    P.S. Amazing guides. Will recommend your guides to everyone, even random people I meet on the street.

  6. Hardik Patil Avatar

    is it necessary to write 'prototype' ?

  7. premier69 Avatar

    what font is he using in that editor? I'd love to have it for windows and linux

  8. Supetorus Avatar

    OOP is so weird in JavaScript. I have been doing Java for a few months and this is completely different. It's almost as if OOP wasn't an originally intended feature but was just dropped in later.

  9. Rodrigo Trovão Avatar

    VERY glad understood it

  10. JediofPool Avatar

    Glad I went bald before learning method overloading in javascript. Great tut!

  11. Ali Raf Avatar

    perfect as ever,
    Thanks

  12. Carlos Flores Avatar

    just started JS a week ago, this stuff is amazing 🙂 im sad i started so late but you make it fun

  13. Mr. Corn Avatar

    this episode was really confusing ~_~

  14. Ruslan Pr Avatar

    From the tutorial: mode -> mood? 🙂

  15. xingwang ren Avatar

    i have tried, extend function can do fine without add temp function, then whats the purporse of the Empty Temp function?this rather confuse me~anyone can help?

  16. xingwang ren Avatar

    If ES5 can do fine in OOP with its own style,why should ES6 mimic Other OOP language?won,t it be fine to be just what is?I think ES6 just add too many useless into a rather clear cut language!

  17. Akash Chandra Avatar

    You have done an amazing job creating these … I follow each of ur videos… Kudos..If u could go lil more advance and practical application example will help a lot

  18. Rabin S Avatar

    This one is even better because you explain so well i learn all the syntax here!!

  19. koundamanee Avatar

    Excellent intro to OOP Javascript

  20. Iulian Redinciuc Avatar

    What is the point of inheriting all the methods and proprieteis with the call method when also you can do the same with the Cat.prototype = new Animal(); ? doesn't the Cat.prototype = new Animal() inherit all the methods and proprities from the super class Animal and set it as a subclass of Animal?

  21. Guest Guest Avatar

    Hey Derek,

    Are these tutorials still up to date with today? Just curious since they are over 4 years old haha…

  22. Dan Fletcher Avatar

    Thank you! You're explanation of method overloading made a lot of sense.

  23. Rodrigo Pimenta Avatar

    Good tutorial! I just have one question, where we gonna used OO Javascript in real life?

  24. Anthony Mark Peirson Avatar

    Hi. Thanks for your great work! Just a quick question. Are the properties truly encapsulated as there doesn't seem to be a way to declare them as private which means you could just say dog.owner = "some value" which bypasses any error checking in your setter methods… is there a way to stop this direct access ?

  25. MrMrkun Avatar

    I don't know why, but at 10:48 the way you said those few things, really reminded me of Robert Downey Jr in iron man. 😀

  26. Khanh Nguyen Avatar

    Thanks for your great works!!!

  27. sahith appl Avatar

    Your tutorials are amazing.

  28. Shrey Anand Avatar

    hey these videos really helped, thanks! JavaScript is used for other purposes also(like desktop widgets) and not only for web based activities so is the implementation there same ?

  29. norvasc28 Avatar

    Another great tutorial! Thanks. this is really a clear explanation of OOP in js. I got 2 questions: 1) instead of creating var dog = new Animal(), just we can do it like this: Dog.prototype = new Animal(); //so Dog is a subclass of the class Animal 
    2) I think we can use the method call to inherit any other class/objects methods e.g.:
     Dog.setName.call(Animal, "name"); is that possible?

  30. Voilard Avatar

    You sound like markcrilley…

  31. Mobster Squirrel Avatar

    JavaScript is kinda crazy hahaha 🙂

  32. MathGuy Avatar

    Hi Derek, in your example of creating a new Animal object, how do I prevent someone from using this coding:
    dog.owner = "Charlie"; ? ie, I would like to force the user to use the prototype methods. Thanks in advance, -J

Leave a Reply

Your email address will not be published. Required fields are marked *