public marks

PUBLIC MARKS from bader with tag encapsulation

22 February 2006 19:30

MF Bliki: GetterEradicator

by 1 other
The general justification is that getters violate encapsulation. If I've got a bowler class with fields for overs, runs and wickets, then adding getters (getOvers, getRuns, getWickets) is little better than just making the fields public.

bader's TAGS related to tag encapsulation

oo +   python +