Inheriting Methods | Javascript | Astute JS

Опубликовано: 13 Сентябрь 2017
на канале: Astute JS
35
0

https://jsfiddle.net/sathishkrcs/1w95...

Inheriting "methods"
JavaScript does not have "methods" in the form that class-based languages define them. In JavaScript, any function can be added to an object in the form of a property. An inherited function acts just as any other property, including property shadowing as shown above (in this case, a form of method overriding).

When an inherited function is executed, the value of this points to the inheriting object, not to the prototype object where the function is an own property.


На этой странице сайта вы можете посмотреть видео онлайн Inheriting Methods | Javascript | Astute JS длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Astute JS 13 Сентябрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 35 раз и оно понравилось 0 зрителям. Приятного просмотра!