Swift: Functions without parameters

Swift functions can be defined without any parameters passed into them. Whenever the printName function is called, it always prints the same name.

Leave a Reply