Cognizant interview question

Different types of inheritance