CTS interview question

Inheritance based oops question in any language.