Hmm, this is a tricky one. I'd go with Option D too, just to be on the safe side. Can't have those pesky outside influences messing with my Pair object!
Option D looks like the best choice to ensure the requirement is met. Encapsulating the left and right fields, and making the setters private, would prevent direct access and maintain the validity constraint.
Charlie
14 hours agoMarleen
6 days agoKatie
17 days agoQuentin
23 days agoFelicia
25 days agoQuentin
26 days ago