Write a fully-documented class named RequestQueue that must be derived as a subclass of Vector from the Java API. You should provide a constructor and the standard methods enqueue(), dequeue(), size(), and isEmpty() as were discussed in lecture.
DOES that mean that I gotta have a vector object as a private member and make that object work as a queue using functions from the vector class, but at the end I will have my deque, enque, size, empty......
is my thought right or not?
and on the header of the class I would have something like:
public class RequestQueue extends Vector
{
..............
}
if I have extends....I don't see the point because I could simply put this before the class header...
import java.util.*;
help please
2007-10-23
21:43:03
·
2 answers
·
asked by
Angel
1
in
Computers & Internet
➔ Programming & Design