Map
Index
Random
Help
th

Quote: use representation inheritance for efficient implementation of new operations; e.g., swap the tails of two lists without cross links or missed elements

topics > all references > references e-f > QuoteRef: edwaSH2_1997 , p. 86



Topic:
inheritance of properties

Quotation Skeleton

[Consider a sub-class that adds an operation to swap the tails of doubly-linked objects.] Using the operations [of the parent class], the only way … add and remove operations. … [p. 87] 'Two_Way_List's doubly- linked chain representation lends itself … [If the sub-class cross links the two links, it violates the parent class' representation invariant. If it transfers too many or too few elements, it violates the class' abstraction relation.]   Google-1   Google-2

Copyright clearance needed for quotation.


Related Topics up

Topic: inheritance of properties (24 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.