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 |
Does swift have abstract classes?
What is reuseidentifier in swift?
Explain completion handler?
Should I use struct or class swift?
What is bridging header in swift?
What is race condition in swift?
How does a swift transfer work?
What are the different ways to pass data in swift?
What are initializer in swift?
What is viewcontroller in swift?
How base-class is defined in Swift?
What is the usage of switch statement in swift language?