Explain what Lazy stored properties is and when it is useful?
Answer / iosraj
Lazy stored properties are used for a property whose initial values is not calculated until the first time it is used. You can declare a lazy stored property by writing the lazy modifier before its declaration. Lazy properties are useful when the initial value for a property is reliant on outside factors whose values are unknown.
Is This Answer Correct ? | 0 Yes | 0 No |
What is hashable in swift?
What language is swift most similar to?
What is swift programming language?
What is swiftnet?
How can we define a base class in swift?
Is swift object oriented programming?
What are the two main integer types in swift?
What is argument label in swift?
What is a delegate in swift?
What is a swift class?
What is retain in swift?
Can you explain regular expression and responder chain?