Quantcast
Channel: User Federico klez Culloca - Stack Overflow
Viewing all articles
Browse latest Browse all 488

Comment by Federico klez Culloca on What's the reason to call/create non-default constructor instead of method?

$
0
0
Also, what if tomorrow you need the constructor to do other stuff after setting values? Are you going to hunt down every call to the default constructor and add whatever it needs to do down there? What if the operations it does are not public?

Viewing all articles
Browse latest Browse all 488

Trending Articles



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