Answer:
It lets you group a series altogether to perform a specific task.A function once created can be over and over in the code, and in case you find a repeating statement in the code, then the function can be the answer to avoid the repetition.
Previous Question | Next Question |
Tell us what Lazy stored properties are and when they are useful? | Tell us how can you define a base class in swift? |