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 swiftnet?

0 Answers  


Why swift is the best language?

0 Answers  


What is string in swift?

0 Answers  


What is argument label in swift?

0 Answers  


Mention what are the type of integers does Swift have?

1 Answers  






What is the purpose of swift?

0 Answers  


What is swift nsarray?

0 Answers  


What are the higher order functions in swift?

0 Answers  


What is nsdictionary in swift?

0 Answers  


What is final class in swift?

0 Answers  


In swift, what type of object are basic data types?

0 Answers  


What are the two main integer types in swift?

0 Answers  


Categories