What are the advantages that prototype based OO has over class based OO?

前端 未结 7 1466
借酒劲吻你
借酒劲吻你 2020-11-30 23:18

Why is class based OO so popular instead of prototype based OO? Do they teach the latter in schools? Though Javascript is prototype based, most people use it mostly function

7条回答
  •  一整个雨季
    2020-12-01 00:17

    I really don't want to write another article about prototypal inheritance again so I'll just link you to my previous articles. Mind you, they are really long but well worth the read:

    1. Benefits of prototypal inheritance over classical?
    2. Why Prototypal Inheritance Matters

提交回复
热议问题