Citi interview question

differences between types of inheritance