Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.21 KB

File metadata and controls

46 lines (28 loc) · 1.21 KB

Design

Goal

The goal of this exercise is to teach the student the basics of the Concept of Inheritance in Java.

Learning objectives

  • Know what inheritance is.
  • Know how to inherit from a class.
  • Know that all types inherit from object.
  • Know what the override annotation means.

Out of scope

  • Inheritance from interfaces
  • Abstract classes

Concepts

  • inheritance

Prerequisites

This exercise's prerequisites Concepts are:

  • classes
  • strings
  • if-else-statements

Representer

This exercise does not require any specific representation logic to be added to the representer.

Analyzer

This exercise could benefit from the following rules in the analyzer:

  • actionable: If the student left any // TODO: ... comments in the code, instruct them to remove these.
  • informative: If the solution didn't use the Override annotation for the overrided methods, inform the student that it's a good practice to add it.

If the solution does not receive any of the above feedback, it must be exemplar. Leave a celebratory comment to celebrate the success!