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 are the different control transfer statements used in swift?

1 Answers  


What is swift programming?

1 Answers  


How to declare an empty dictionary in swift?

1 Answers  


What are properties in swift?

1 Answers  


What are lazy stored properties, and how are they useful?

1 Answers  


What is the difference between swift and ‘objective-c’ language?

1 Answers  


Why do we need closure in swift?

1 Answers  


What are the different collection types available in swift?

1 Answers  


In Swift enumerations, what’s the difference between raw values and associated values?

1 Answers  


Explain the different features of swift programming language?

1 Answers  


What is a guard statement? What is the benefit of using guard statement in swift?

1 Answers  


What is a function in swift?

1 Answers  


Categories