Why extensions must not contain stored properties?
In Programming language principal generally we consider State & Behaviour State can be consider as properties(let, var) & Behaviour as Functions. For example: – dog, cat, and vehicle. To illustrate, a dog has states like age, color, name, and behaviours like eating, sleeping, and running. State tells us how the object looks or what properties …
Why extensions must not contain stored properties? Read More »