๐Ÿ…ฟ๏ธprotocol

๐Ÿšง ๆ–ฝๅทฅไธญ

Swift โŸฉ type โŸฉ category โŸฉ protocol

A set of requirements, such as methods and properties, that can be adopted (or followed) by a type, such as a class, structure, or enumeration.

When a type adopts a protocol, it provides its own implementation of the protocol requirements, and is said to conform to that protocol.

๐Ÿ‡น๐Ÿ‡ผ ไธญๆ–‡็จฑ็‚บใ€Œ่ฆ็ฏ„ใ€ๆˆ–ใ€Œๅ”ๅฎšใ€ใ€‚

Last updated