Trantor interview question

class inheritance