Team LiB
Previous Section Next Section

Exercises

  1. From the perspective of an academic setting (but not necessarily the SRS case study specifically), think about what the appropriate attributes and methods of the following classes might be:

    • Classroom

    • Department

    • Degree

    Which of the attributes of each of these classes should be declared using predefined C# types, and which should be declared using user-defined types? Explain your rationale.

  2. For the problem area whose requirements you defined for exercise 3 in Chapter 2, list the classes that you might need to create in order to model it properly.

  3. List the classes that you might need to create in order to model the Prescription Tracking System discussed in Appendix B.

  4. Would Color be a good candidate for a user-defined type/class? Why or why not?


Team LiB
Previous Section Next Section