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" a good programming language? Explain

0 Answers  


What is a guard statement?

0 Answers  


What is nsdictionary in swift?

0 Answers  


Why is swift important?

0 Answers  


What is the meaning of question mark "?" In swift?

0 Answers  






What is de-initializer and how it is written in Swift?

1 Answers  


What type of objects are basic data types in swift?

0 Answers  


How do you make a swift bridging header?

0 Answers  


What are the different floating point numbers in swift?

0 Answers  


What are functions in swift?

0 Answers  


How to convert nsmutablearray to swift array in swift?

0 Answers  


What are type methods in swift?

0 Answers  


Categories