Zoox interview question

Standard C++ OOP Design, Inheritance