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

Is swift open source?

0 Answers  


Does swift have a runtime?

0 Answers  


What is differences in swift 1.x, 2.x, 3.x, 4.x?

0 Answers  


Difference in classes and structures in swift?

0 Answers  


What are the best ways of achieving concurrency in ios?

0 Answers  






What is thread in swift?

0 Answers  


What language is swift written?

0 Answers  


List the features of swift programming?

0 Answers  


What is an in-out parameter in swift?

0 Answers  


Why we use delegates in swift?

0 Answers  


What is clean swift architecture?

0 Answers  


What is the use of continue statement in swift loop?

0 Answers  


Categories