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 difference between single and double, in swift?
What is strong in swift?
What is the usage of switch statement in swift language?
What is static function in swift?
What is encapsulation in swift?
Explain how you define variables in Swift language?
Is swift coding easy?
What is singleton in swift?
What are the different floating point numbers in swift?
How multiple line comment can be written in swift?
Explain any three-shift pattern matching techniques?
How to create a tuple in swift?