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 type of objects are basic data types in swift?
Is swift easier than java?
What do you mean by a deinitializer?
What is reuseidentifier in swift?
How do you implement delegates in swift?
How you define variables in swift language?
What is better swift or objective c?
What is forced unwrapping?
In swift, what type of object are basic data types?
Is equal to string swift?
What do you mean by initialization?
What is mvc architecture in swift?
What are the half open range operators in swift?
Can enum be extended in swift?
How can you define a base class in swift?