> What is happening in the constructor?
> ItemArray() { count(0), capacity(0), items(0) }; <-- ????
A bunch of compile time errors. ( 'count' is not a function etc.)
Any of these would be ok. ItemArray() { count = 0 ; capacity = 0 ; items = 0 ; }
or ItemArray() : count(0), capacity(0), items(0) {}
or ItemArray() : count{0}, capacity{0}, items{0} {}