On this page:
Premise
Warmup
Using Abstract Classes
8.6

Assignment 5: Abstracting over Data Definitions

Goals: Practice designing abstract classes.

You should submit one .java file containing the solution to this problem.

Be sure to properly test your code and write purpose statements for your methods. A lack of tests and documentation will result in a lower grade! Remember that testing requires you to make some examples of data in an examples class.

Premise

Related files:
  Media.java  

In this problem, your data will represent different kinds of media. Each piece of media has a title and list of available languages for captions. Different kinds of media can also contain additional information as shown in the supplied Media.java file.

Note: none of the methods are currently properly implemented. As given in the file, they are all stubs that currently return a dummy value, so the code will compile but not yet work.

Warmup

Download the file and work out the following problems:

Then...

Using Abstract Classes