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 |
Which is better car baleno or swift?
Explain the usage of class and benefits of inheritance.
What are generics? How to make a method or variable generics in swift?
What are the tools that are required to develop ios applications?
What is “defer”?
Can you explain any three-shift pattern matching techniques?
Who invented swift code?
Explain dictionary in swift.
What is floating point number in swift?
What are properties in swift?
How do I add a header in swift?
What is retain in swift?