> For the complete documentation index, see [llms.txt](https://jen-hsuan-hsieh.gitbook.io/javascript-node-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jen-hsuan-hsieh.gitbook.io/javascript-node-js/chapter1/12javascript-quan-gong-lve-ff1a-ke-fu-js-de-qi-guai-bu-fen/124javascript-de-wu-jian-dao-xiang-yu-yuan-xing-ji-cheng/1241guan-nian-xiao-ding-ning-ff1a-gu-dian-he-yuan-xing-ji-cheng.md).

# 1.2.4.1.觀念小叮嚀：古典和原型繼承

* 繼承 (inheritance)
  * 一個物件可以取用另一個物件的方法
* 古典繼承 (Classical inheritance)
  * verbose, 數量過大容易變得複雜
  * e.g.friend, protected, private, interface
* 原型繼承 (Prototypal inheritance)
  * simple, flexible
