Appendix: Answers to Selected Exercises

This Appendix does not include exercises for which the answer is found on the companion Website www.dorsethouse.com/books/ooc.html, noted throughout the book. Nor does it answer questions that depend on unsettled controversies. Further insights from the author and from readers also may appear from time to time on the Website www.idinews.com.

1.4-1 C has no primitive data type for text data. The programmer was encouraged to think of a text data item as an array of single characters. On the other hand, PL/I, COBOL, and BASIC supported character strings as built-in types. An inexperienced programmer learning C or Java as his or her first language, therefore, tends to merge the notions of strings and arrays ...

Get Object-Oriented Computation in C++ and Java: A Practical Guide to Design Patterns for Object-Oriented Computing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.