Assignment 6: Abstract Classes, Interfaces, and Package Practice

Objective: To get experience using abstract classes and interfaces.

Due: Before class on Friday.

Using Abstract Classes in the Game application (40)

To start, you can either:

Now for the refactoring of your code:

Using Packages (15)

Modify your Assignment 5 classes excluding the Driver program to belong to a package. Name the package edu.wlu.cs.yourusername Use Eclipse to make the package and move your classes into the package. Move is part of the Refactor menu.

Modify your driver program to import the classes from the package. (Eclipse may have done that for you already.)

Using Interfaces (35)

Modify your Assignment 5 MediaItem classes to implement the Comparable interface.

In your driver program, sort and display the elements in the array.

Save your output in a file.

Turnin

Copy your project into an assign6 directory in your turnin directory.

Grading (90 pts)

You will be evaluated based on the following criteria: