The analysis to the Inheritance Mechanism in C++ and Java

Li Qiao · Journal of Kaifeng University · 2005

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

Read the paper · More papers on PaperTik