This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Accessor Method: Generally small and supplies the resources for the state of an object to be retrieved from other locations. Constructor Method: Initiated when during the creation of an instance for a class, various syntax apply.(Liskov,1974) What is the most useful implementation of an ADT as a class, and why? I would have to say the most useful implementation of an ADT is its ability to simplify descriptions of abstract algorithms, and in addition, to evaluate and organize structures. One could also argue that its importance also lies in its implementation as modules, given that the strategy to hide information can permit the module to be altered without doing anything to the actual client. Reference: Barbara Liskov, Programming with Abstract Data Types, in Proceedings of the ACM SIGPLAN Symposium on Very High Level Languages Robert Sedgewick (1998). Algorithms in C. Addison/Wesley....
View Full Document
- Spring '12