The instance variables were already declared in ArrayQueue.h. What you have done is to create static variables that all instances will share, with disastrous results