Posted 2021-06-29Javascript14 minutes read (About 2122 words)物件與繼承 -2物件導向程式設計(OOP)分為層次有:Layer 1: 單一物件的物件導向(OOP)Layer 2: 物件的原型鍊(Prototype chains)Layer 3: 建構器(Constructor)作為實體的工廠Layer 4: 衍生子類別(subclassing)藉由繼承現有建構器來建立新的建構器Read more