Citadel interview question

Virtual functions in C++, design a circular buffer (any language)