In general, constructors, readers, and writers isolate you from the details
of how a structure is implemented. Once you have written those functions,
you can forget about how they refer to and assign values; none of the
detail, such as whether you have a price
or a total_cost
structure variables, clutters the programs that use trade
objects.
Collectively, constructors, readers, and writers are called access functions. Whenever you refer to the value of a variable or assign a value to a variable, you are said to access that variable.