Javascript extend class es6 : Object Oriented Programming Series - Part 10

Поділитися
Вставка
  • Опубліковано 4 вер 2017
  • Extending Base class to make a sub Class in ES2015
    Article and code samples from this tutorial
    *
    Please be my patreons on patreaon
    * / techsith
    Follow me for technology updates
    * / techsith
    * / techsith1
    Help me translate this video.
    *
  • Наука та технологія

КОМЕНТАРІ • 39

  • @kosemekars
    @kosemekars 4 роки тому +3

    The only channel that teaches both coding and zoology!

  • @steverees3790
    @steverees3790 3 роки тому

    I have found your tutorial videos to be the best out there for learning JS. Easy to follow examples, well explained and nicely paced. Thanks!

  • @td8916
    @td8916 5 років тому +1

    Your videos particularly help me alot compared with other youtube coders. Thanks man

  • @BP-xk4hd
    @BP-xk4hd 6 років тому +1

    You're a very good teacher. Wish I found this channel earlier. You offer some of the best videos to learn with I've seen. Cheers

    • @Techsithtube
      @Techsithtube  6 років тому

      Thanks for a nice comment Billy. Keep learning!

  • @sol0matrix
    @sol0matrix 5 років тому

    This is awesome i didn't know these tricks especially with object asign and spread operatetor

  • @mdafradhossain6243
    @mdafradhossain6243 3 роки тому

    I have got a better understanding from here about the subclasses.

  • @itsrahimuddinkhan
    @itsrahimuddinkhan 6 років тому

    Awesome tutorials from techshit. Superb explanation of all oops concepts in JavaScript. I would like to suggest everyone to watch all vedios at least once if you have interest in JavaScript.
    Really nice tutorials from techshit. Thank you so much for such a nice tutorials

  • @seenuvasanv
    @seenuvasanv 6 років тому

    Simply clear.

  • @anastasiades.konstantinos
    @anastasiades.konstantinos 2 роки тому

    Now notice that when calling super class method, because inside the walk() method we have used the "this.name", the method uses the name of the subclass that calls it.

  • @mns4183
    @mns4183 6 років тому +4

    Hi, your doing a very good job , I am referring your videos to learn javascript instead of books

    • @Techsithtube
      @Techsithtube  6 років тому

      I am glad its helping you. Thanks for watching !:)

  • @DavidShin
    @DavidShin 6 років тому

    awesome video learnt a lot!

  • @Jay-eg7yt
    @Jay-eg7yt 5 років тому

    From what you said, I'm assuming that if there is only one level of inheritance or less, we should use a function object constructor? Not said, but I believe this is implied?

  • @anastasiades.konstantinos
    @anastasiades.konstantinos 2 роки тому

    why we use the super(...args)? in the first example we did not call the super to initialise the inherited properties.

  • @fred1153
    @fred1153 4 роки тому

    Typically variable names that start with an underscore denote a private class property. For example _legs would be a private member of Mammal, not legs. So it is odd to be passing in constructor parameters with underscores. For example at the 5:47 mark, the Mammal constructor is passed in _legs as param 1, then inside the constructor this.legs = _legs. That feels backwards. Seems to me you should pass in legs to the constructor, then inside the constructor this._legs = legs.

  • @sassankermani4973
    @sassankermani4973 5 років тому

    thanks man your grate

  • @gabrielfono844
    @gabrielfono844 4 роки тому

    damn sir
    very nice.

  • @aseel1024
    @aseel1024 4 роки тому

    thx!

  • @ningyima
    @ningyima 5 років тому

    Explain the hardest parts of Javascript in a super smart way.

  • @mujtabaiqbal4430
    @mujtabaiqbal4430 6 років тому +5

    Is there a reason there is an underscroll in front of the variable names?

    • @Techsithtube
      @Techsithtube  6 років тому +2

      its just a coding style to have local variables to have underscore in-front so you can differentiate.

    • @mujtabaiqbal4430
      @mujtabaiqbal4430 6 років тому

      techsith got it, thank you very much!

    • @andrerothweiler9191
      @andrerothweiler9191 5 років тому

      techsith Yeah, something that should also be in JS like in other languages!

  • @terry6180
    @terry6180 6 років тому

    Can you teach about node js sir please

  • @mohamedramadan7738
    @mohamedramadan7738 6 років тому

    Constructors can't be overriding by adding new parameters while init it like normal java classes .. am i right?

  • @pokerface550
    @pokerface550 6 років тому

    the videos in this playlist are in the wrong order. Also I would split this tutorial into 3 or 4: ES5, ES6, OOP in JS & job interview questions. The only video about Angular 4 seems like an alien here.

    • @Techsithtube
      @Techsithtube  6 років тому

      :) Yes, I started Angular4 just before the Angular5 release.

  • @eldhosevj9924
    @eldhosevj9924 4 роки тому

    In react.js even if we don't call super, it will work! Why

    • @Techsithtube
      @Techsithtube  4 роки тому

      super only runs parent constructor. everything else should work as it is. Is that what you referring to?

  • @tranhuy2304
    @tranhuy2304 6 років тому +1

    Interesting that they are now looked almost identical to Java in term of OOP🤔🤔They have class constructor, super, even subclass, but they dont have encapsulation, inheritance to be called OOP

    • @Techsithtube
      @Techsithtube  6 років тому +1

      +Tran Huy yes it does looks like have classes. At least from outside. :)

    • @tranhuy2304
      @tranhuy2304 6 років тому

      techsith Yeah. Its really a big topic for developers to talk a lot whether if javascript is OOP or not. To be able to be OOP the language needs to have polymorphism, encapsulation, inheritance, but seems like javascript try to go that way but not perfect right now. Maybe with new update for EMS we will see more about this🤔🤔

    • @Techsithtube
      @Techsithtube  6 років тому +1

      No i dont think so. They might in later versions, we never know. However, as of now, it seems javaScript considers its self as functional programming langauage with some inheritance featurs. I think typical inheritance is overkill anyway. Instead, you can use object.create and other object methods to achive composition.