Swift Developer Question:

Download Job Interview Questions and Answers PDF

Tell us what Lazy stored properties are and when they are useful?

Swift Developer Interview Question
Swift Developer Interview Question

Answer:

Lazy stored properties are used for a property whose initial values are not set until the first time it is used . You can declare a lazy stored stored property by writing the lazy modifier before its declaration. Lazy properties are useful when the initial value of a property is reliant on outside factors whose values are unknown.

Download Swift Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain me what Is A Deinitializer In Swift?Can you explain Functions?