twitter interview qt5.1.1 inheritance and aggregation