Pregunta de entrevista de CTS

Inheritance based oops question in any language.