1.4 Zoo Learning Activity

You will update the project to use constructor-based setup and validation so objects begin with useful values when they are created.

Exact casing matters

File names, UI names, display text, event handler names, method names, field names, and property names may be case-sensitive. Match the provided starter and completed checkpoint naming exactly.

Common mistake to check

Most issues in this kind of checkpoint come from one character being different: a missing capital letter, a renamed event handler that does not match XAML, or a class file that was created outside the expected folder.

How to use the code snippets

Code snippets show only the lines to add or change. Do not recopy surrounding code that is already in the file. Place each snippet inside the correct class, method, property, or XAML area so the braces and tags still make sense.

  1. Before You Start

    Back up your completed Zoo 1.3 LastName folder first. Then copy or rename your working folder and solution file so they use Zoo 1.4 LastName. Use your actual last name in place of LastName.

  2. Check Your Work

    You will update the project to use constructor-based setup and validation so objects begin with useful values when they are created. After you finish the edits, verify the project instead of only checking that the code looks similar.

    Temporary screenshot for Zoo 1.4 Check Your Work
    Temporary screenshot location: Check Your Work.