Introduction to Programming: Additional work for week 16

Having looked at the second semester test for 2000, you might also like to look at the second semester test for 1999, available here. Part A of this test involves the same "monsters" example as in the 2000 test, so is useful additional execises on this material. Part B concerns lists, which we haven't yet covered, so don't worry if you don't understand it (but it will help you get some idea of material that's still to come in this semester).

The ability of Java variables to refer to objects of any subclasses rather than directly of their own class is known as polymorphism and we discussed some examples of this which came up in the test from last year. Some notes on polymorphism in Java can be found on the web from:

Matthew Huntbach
12th Febuary 2001