When you subclass a vector can you put primitives in it?
(I know vectors only hold objects)
public class Subvector extends Vector
{
int i= 5; //does error occur here?
public static void main(
String args[ ]){
Subvector sv = new Subvector( ) //does error occur here?
System.out.println(sv.i) //does error occur here?
}
}
Thanks in Advance!