Protocol
Jump to navigation
Jump to search
Protocols are used to define the interface for a set of methods, but not the implementation or any data members.
This is useful for defining an interface which objects will need to conform to in order to take advantage of some service or other.