Objective: To get experience using abstract classes and interfaces.
Due: Before class on Friday, Sep 26.
Start a new project in Eclipse but say that you're using existing source code and give the path to your Assignment 4 code (the game).
Modify the GameObject
class so that it is
an abstract
class with an abstract
method move
.
Put the implementation of the move
method into
the Human
class.
Test your new code.
In comments in GameObject
, discuss why this is a
better approach to organizing the code.
Modify your Assignment 5 classes excluding the Driver
program to belong to a package. Use Eclipse to make the
packages and move your classes into the package. Name the
package edu.wlu.cs.yourusername
Modify your driver program to import the classes from the package.
Modify your Assignment 5 MediaItem
classes
to implement
the Comparable
interface.
In your driver program, sort the elements in the array.
Copy your code into an assign6
directory
in your turnin
directory.
You will be evaluated based on the following criteria: