The analysis to the inheritance mechanism in C++ and Java

C++ uses multiple inheritance,while Java discards multiple inheritance of class.However Java introduces interface which defines a set of protocol specifications,that is prototypes of methods.The implementing parts are deferred until a class implements the interface.The interface and implementation results are in the independent interface inheritance.Hence,the inheritance provided by interface is simpler and more flexible than multiple inheritance of class.