Unlimited Plugins, WordPress themes, videos & courses! Unlimited asset downloads! From $16.50/m

6.2 Classes and Structures

The most powerful way to create new types in Swift, similar to in other object-oriented languages, is by defining classes and structures. At first glance, these look very similar to each other. Let's start with some basic examples to see how to create classes and structures. In the next lesson, we'll go a little deeper into the differences between them.