Explain what Lazy stored properties is and when it is useful?



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

Post New Answer

More Apple iOS Swift Interview Questions

What is difference between single and double, in swift?

0 Answers  


What is strong in swift?

0 Answers  


What is the usage of switch statement in swift language?

0 Answers  


What is static function in swift?

0 Answers  


What is encapsulation in swift?

0 Answers  


Explain how you define variables in Swift language?

1 Answers  


Is swift coding easy?

0 Answers  


What is singleton in swift?

0 Answers  


What are the different floating point numbers in swift?

0 Answers  


How multiple line comment can be written in swift?

0 Answers  


Explain any three-shift pattern matching techniques?

0 Answers  


How to create a tuple in swift?

0 Answers  


Categories