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
What is protocol in swift?
Do swift classes inherit from nsobject?
Is equal to string swift?
Is singleton thread safe swift?
What is the swift main advantage?
How will you define base class?
What is viewcontroller in swift?
What is lazy loading in ios swift?
How do you implement delegates in swift?
What are functions in swift?
What is a static variable swift?
Explain core data.
What is extension in swift?
Is swift compiled or interpreted?
What are swift properties?