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 hashable in swift?

0 Answers  


What language is swift most similar to?

0 Answers  


What is swift programming language?

0 Answers  


What is swiftnet?

0 Answers  


How can we define a base class in swift?

0 Answers  


Is swift object oriented programming?

0 Answers  


What are the two main integer types in swift?

0 Answers  


What is argument label in swift?

0 Answers  


What is a delegate in swift?

0 Answers  


What is a swift class?

0 Answers  


What is retain in swift?

0 Answers  


Can you explain regular expression and responder chain?

0 Answers  


Categories