Learning objectives

Plan a small class hierarchy from a scenario, with a private attribute, an inherited method and an overridden method, and trace the result of polymorphic calls

Read a supplied text file line by line to end of file, converting each field to the right type before calculating

Calculate the byte offset of a record in a fixed-length random-access file from its key and the record length

Choose test inputs that trigger each exception path, such as a missing file or text where a number is needed

Continue with a revision plan

These learning objectives are available to everyone. Sign in with an eligible plan to read the full note and worked examples.