Data encapsulation in Swift

You want to be able to swap around the implementation of the main parts of your code.

One way of doing this is through encapsulation. This article will help you to understand this important coding principle.

Photo by fabio on Unsplash

Difficulty: Beginner | Easy | Normal | Challenging