Encapsulation of fields