Discussion Forum

How is inheritance in C++ different from Java?

How is inheritance in C++ different from Java?

by Jyoti Negi -
Number of replies: 1

How is inheritance in C++  different from Java?

In reply to Jyoti Negi

Re: How is inheritance in C++ different from Java?

by Ashutosh Bhatt -
In C++, we can use the multiple inheritance. In Java, we cannot create multiple inheritance directly. To reduce ambiguity, java supports interfaces to get the effect of multiple inheritance.