adspace


Explain what Lazy stored properties is and when it is useful?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some biggest changes in usernotifications.

925


How can you define a base class in swift?

931


Explain the common execution states for a swift ios app (ios application lifecycle).

900