Quantcast
Viewing latest article 31
Browse Latest Browse All 38

Answer by Jason Baker for Why use getters and setters/accessors?

One other use (in languages that support properties) is that setters and getters can imply that an operation is non-trivial. Typically, you want to avoid doing anything that's computationally expensive in a property.


Viewing latest article 31
Browse Latest Browse All 38

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>