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

Does swift have abstract classes?

0 Answers  


What is reuseidentifier in swift?

0 Answers  


Explain completion handler?

0 Answers  


Should I use struct or class swift?

0 Answers  


What is bridging header in swift?

0 Answers  






What is race condition in swift?

0 Answers  


How does a swift transfer work?

0 Answers  


What are the different ways to pass data in swift?

0 Answers  


What are initializer in swift?

0 Answers  


What is viewcontroller in swift?

0 Answers  


How base-class is defined in Swift?

1 Answers  


What is the usage of switch statement in swift language?

0 Answers  


Categories