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 |
What is the usage of switch statement in swift language?
Why does apple use swift?
Can structs inherit swift?
How to create a tuple in swift?
What is the full form of swift code?
What do you do when you realize that your app is prone to crashing?
What lazy stored properties is and when it is useful?
What is strong in swift?
What are the control transfer statements that are used in ios swift?
What is Initialization ?
Is swift easier than python?
What is the swift main advantage?