Research indexBook chapter
Protocols
Campbell
Apress eBooks1 Jan 2013
NobleIDark:/48914/w1/20260515/9BC2CA02DOI10.1007/978-1-4302-6488-0_23
Protocols
Campbell · Apress eBooks · 2013 · Subscription
NobleIDark:/48914/w1/20260515/9BC2CA02DOI10.1007/978-1-4302-6488-0_23
The full text is at the publisher
You can read the abstract here, or open it at the publisher.
Abstract
Protocols are used to define a set of methods and properties independently of a class. Any class can adopt a protocol, which means that the class implements the properties and methods defined by the protocol. In effect, protocols define a contract that classes can agree to fulfill. When a class adopts a protocol, you can be confident that the class will have implemented the properties and methods in the protocol.