Motorola Solutions interview question

Asked about polymorphism and inheritance