Wipro interview question

Define inheritance and it's types