O'Reilly logo

Learning Swift by Andrew J Wagner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Behavioral patterns

Behavioral patterns are patterns that describe how objects communicate with each other. In other words, it describes how one object sends information to another object, even if that information is just about some event that occurred. They help to lower the code's coupling by providing a more detached communication mechanism that allows one object to send information to another while having as little knowledge about the other object as possible. The less any type knows about the rest of the types in the code base, the less it is dependent on those types. These behavior patterns also help to increase cohesion by providing straightforward and understandable ways to send information.

This can often be the difference between doing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required