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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.