Object Oriented Javascript

后端 未结 5 937
Happy的楠姐
Happy的楠姐 2020-12-13 07:56

In the course of programming we encounter large javascript files which are open source and written in an object oriented manner( like JQuery ).

If we need to modify

5条回答
  •  醉梦人生
    2020-12-13 08:15

    First of all I think that you have to understand how JavaScript object orientation works, JavaScript OO is Prototype-based, in which classes are not present, and behavior reuse is implemented by prototyping.

    I've seen that this can be hard to catch at the beginning for programmers that have been working on conventional class-based object-oriented languages (like C++, C#, Java, etc).

    Recommended articles:

    • Introduction to Object-Oriented JavaScript
    • JavaScript: The World's Most Misunderstood Programming Language
    • Classical Inheritance in JavaScript
    • Private Members in JavaScript
    • Class-Based vs. Prototype-Based Languages

提交回复
热议问题