What are methods in Swift ?

Methods are functions that are associated with particular type. There are two types of methods: Instance method and Type method. The methods encapsulate specific tasks and functionality for working with a particular type.

Leave a Reply