Creating a class To create a new class use the class keyword followed by the class name and a pair of braces. Inside the braces we can declare the class properties. class Point { var x = 0.0 // sets the default value of x to 0 var y = 0.0 // sets the default value of x to 0 } //…
We ❤ Swift
It looks like you realy like We ❤︎ Swift! Why not share it with your friends?
GET 10% OFF


Learn Swift Programming from Scratch
Get from zero to here in no time! Read more about the book here.
Training app + PDF BOOK
Coupon code: SWIFT10