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.
Julian
1 months agoAlana
2 months agoQueen
7 days agoShaniqua
21 days agoTalia
26 days agoCharlie
2 months agoVi
17 days agoRolf
26 days agoKaran
1 months agoMarleen
2 months agoDick
11 days agoMozelle
14 days agoJani
18 days agoRupert
20 days agoKatie
2 months agoGlory
1 months agoMarilynn
1 months agoQuentin
2 months agoFelicia
3 months agoQuentin
3 months ago