Apple Interview Question
Software Engineer / DevelopersCountry: United States
A Protocol Is Simply "A set of Rules" that determines how a particular job is to be done and using what standards
for eg:-
TCP/IP Protocol determines how the Data packets are sent over a Network
It Also Determine the job of different layers of the model that is implemented
It Also Standardize the rules for segmenting, routing, sizing etc of Packets
A Protocol Is Simply "A set of Rules" that determines how a particular job is to be done and using what standards
for eg:-
TCP/IP Protocol determines how the Data packets are sent over a Network
It Also Determine the job of different layers of the model that is implemented
It Also Standardize the rules for segmenting, routing, sizing etc of Packets
I believe the "protocol" in the question is referred to Objective C's protocol. Within this scope, protocols declare methods that can be implemented by any class. It's analogous to interface in Java.
- Devilava August 03, 2012