Skip to main content

Timeline for Using Constructors in Java

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Dec 1, 2014 at 14:21 comment added user40980 (that said, the original class features public mutable members... which is something I rarely see as correct.)
Dec 1, 2014 at 14:21 history edited Tulains Córdova CC BY-SA 3.0
added 87 characters in body
Dec 1, 2014 at 14:20 comment added Tulains Córdova @MichaelT you are right. I'll add additional comment in the example stating that.
Dec 1, 2014 at 14:18 vote accept justin
Dec 1, 2014 at 14:17 comment added user40980 Note that in counter example 2, there is the possibility of changing the pair of dice after a roll. This may not be a desirable feature of the class. The original design of the class describes one where the dice value are only setable as part of the initial construction.
Dec 1, 2014 at 14:14 comment added Tulains Córdova @justin I added further explanation at the end.
Dec 1, 2014 at 14:14 history edited Tulains Córdova CC BY-SA 3.0
added 329 characters in body
Dec 1, 2014 at 14:09 comment added justin :Thanks for your answer.I couldn't get what you meant by:"values that enforce the buisness rules or runtime errors".Could you elaborate it.
Dec 1, 2014 at 14:04 history answered Tulains Córdova CC BY-SA 3.0