MathWorks Interview Question

Types of inheritance and which are there in C++ and Java