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 |
Is swift memory safe?
Can you explain regular expression and responder chain?
What are the advantages of using swift?
What are properties in swift?
How can you define a base class in swift?
Where can we test the apple iphone apps if we don’t have an ios device?
What is difference between 'let' and 'var' declaration ?
What is forced unwrapping?
List the features of swift programming?
How long does it take to learn swift?
What is swift programming language?
What is clean swift?