Appendix B. Exercise Solutions
This appendix contains solutions to the exercises. Note that for many problems, there may be multiple viable solutions.
For exercise questions involving figures, the figures for each step show only the solution for that particular step and not for the whole question (which would include the solutions to previous steps in the question). At the end of each question, all the figures for all the steps in the question are combined to produce a final solution to the question.
Structural Modeling
The next few sections present solutions for Part II.
The figure shows a
Reportclass.The class has the following attributes:
NextID, which is private, holds an integer value, is initialized to 1, and is shared by all the objects of the class.ID, which is private, holds an integer value, is not initialized to any value, and is specific to each object of the class.Name, which is private, holds a string value, is initialized to an empty string, and is specific to each object of the class.CreationDate, which is private, holds a string value, is initialized to an empty string, and is specific to each object of the class.SectionName, which is private, holds one or more ordered string values that are initialized to an empty string, and is specific to each object of the class.ProjectName, which is private, holds one or more unordered string values that are initialized to an empty string, and is specific to each object of the class.OwnerName, which is private, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access