Yes, it is possible for me to add multiple new responsibilities to objects through this technique, including responsibilities that were not even thought of by the designer of the superclass. And, I don’t have to touch their code!
ใช่มันเป็นไปได้สำหรับผมในการเพิ่มความรับผิดชอบใหม่จำนวนมากในการอ๊อบเจคต์ผ่านทางเทคนิคนี้รวมถึงความรับผิดชอบที่ไม่ได้คิดว่าของโดยนักออกแบบของ class Subclass . ได้และผมไม่มีให้สัมผัสที่รหัสของพวกเขา