An abstraction barrier violation occurs whenever a part of the program that
can use a higher level function instead uses a function in a lower level.
If you want to change selection, open document below and click on "Move attachment"
2.2 Data Abstraction two-element lists list literals and element selection
In each layer above, the functions in the final column enforce an abstraction
barrier. These functions are called by a higher level and implemented using a
lower level of abstraction.
<span>An abstraction barrier violation occurs whenever a part of the program that
can use a higher level function instead uses a function in a lower level. For
example, a function that computes the square of a rational number is best
implemented in terms of mul_rational , which does not assume anything about
the implementation of a ration Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details