1.

What are lazy stored properties, and how are they useful?

Answer»

Any property whose initial values are not CALCULATED until the first time it is used is called a lazy stored property. Such PROPERTIES can be DECLARED by writing the lazy modifier. These properties are USEFUL when the initial VALUE of a property is dependent on external factors whose values are unknown.



Discussion

No Comment Found