3.11. Exercises

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

    • Classroom

    • Department

    • Degree

    Which of the fields 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. Would Color be a good candidate for a user-defined type/class? Why or why not?

Get Beginning C# 2008 Objects: From Concept to Code 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.