Whereas earlier chapters are primarily devoted to the elements of Ada programs, Chapter 5 is concerned more with how those elements are put together to form a whole program, dealing with issues of program structure and design. One of Ada’s goals is to promote the development of generally reusable software components, an issue addressed in case studies 2.2 and 4.1 (on set types and exceptions, respectively). Study 5.1, “Specifying Interfaces for General Purpose, Portable Software: A Study of Ada Input/Output,” discusses the difficulties encountered in trying to meet this goal. Another central theme in Ada is information hiding—the distinction between interfaces and implementations. This theme is pervasive, playing an important role in several studies presented in this book, and it is the primary subject of case study 5.2, “Information Hiding.”
KeywordsInformation Hiding Parent Unit Access Type Package Body Variable Declaration
Unable to display preview. Download preview PDF.