In this module we introduce Object Orientation as a paradigm and show how to design Object Oriented programs by using the Design Recipe and the ideas covered in this course. This module uses Java instead of Racket and introduces some of Java's basic syntax and computational model.
- Given a DrRacket structure, write the corresponding Java classes.
- Translate the auto-generated functions for a structrure in DrRacket to Java methods.
- Translate contracts to Java method signatures.
- Translate purpose statements to Javadoc.
- Given an itemization data definition, translate it to Java classes.
- Explain inheritance and subtypes for the enumeration examples.
- Given the data definition of a list, translate it to Java classes.
- Given a template for a function that consumes a list in Racket, translate it into Java methods.