Problem extending a class
Hi I have coded the following class which is ment to extend the registeredList class (shown in my previous post) but I get an error when trying to run the program, it says
Error (7) constructor RegisteredList() not found in class AirTrafficControl.RegisteredList.
Any ideas any one?
Code:
public class CirclingList extends RegisteredList
{
//--------------------------------------------------------------------------
public CirclingList(int maxPlanes)
{
list = new Airplane[maxPlanes];
// initialise list
for (int i = 0; i < list.length; i++)
{
list[i] = new Airplane("", 0);
}
}
//--------------------------------------------------------------------------
}