๐ธSelf
โฑ๐ง under construction
swift โฉ type โฉ inheritance โฉ Self
ๅจ protocol ็ๅฎ็พฉไธญ๏ผ
Self
ๆ้ตๅพช่ฉฒๅๅฎ็ๅ ท้ซๅๅฅ (concrete type)ใๅจ class ็ๅฎ็พฉไธญ๏ผ
Self
ๆ่ฉฒ็ฉไปถ็ๅ ท้ซๅๅฅ๏ผไพๅฆ๏ผ็ถไธๅๅฎ็พฉๅจclass A
ไธญ็ๆนๆณ(method) ่ฃก้ขๅฆๆๆๅฐSelf
๏ผ้ฃ้บผ้ๅSelf
ไธไธๅฎๆA
๏ผๅ ็บๅฆๆไธๅๅญ้กๅฅ (subclass)class B
็็ฉไปถ (้้็นผๆฟ็ๆนๅผ) ๅท่ก้ๅๆนๆณๆ๏ผSelf
ๆ็ๆฏB
ใ
Last updated
Was this helpful?