answersLogoWhite

0


Best Answer

C++ allows multiple inheritance while Java does not. In my opinion, multiple inheritance is not useful because it can get very confusing very quick.

For polymorphism, C++ does early binding by default, while Java does late binding by default. Late binding is more useful than early binding.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

in java inheritance does not support multiple inheritance therefore we use interface.where as in c plus plus supprot the multiple inheritance.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How ploymorphism and inheritance is different from that in Java and c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


Why not java allowed multiple inheritance and c plus plus allowed?

Because that's the way Java is designed. The designers felt that multiple inheritance was an unnecessary complication that offered little value so they did not include it in the JBC/JVM.


What are the similarities between c plus plus and java?

C++ and Java are identical except for...No pointers in JavaAll object names are referencesNo operator ->, only operator .No multiple inheritance in JavaNo template classes in JavaThe run-time and class libraries are vastly different


How is java different than any other OOP languages like C plus plus?

Every languages are different, a C++ compiler cannot compile a Java source.


Is Java better than c plus plus?

It is a different tool with difference strengths and weaknesses.


How java is different from c plus plus Explain with example?

See related links, below.


Is c plus plus and java are the same?

No. Java takes some ideas from C++, so there are certain similarities, especially in the basic syntax. But it is a different language.


Which is more popular c plus plus or java?

Java


How do you implement inheritance in c plus plus?

You implement inheritance by deriving a new class of object from an existing class of object. The existing class is known as the base class of the derived class.Classes declared final cannot be used as bases classes and classes without a virtual destructor (or a virtual destructor override) cannot be used as polymorphic base classes.


Which is easier 'C plus plus' or 'Java'?

Java is considerably easier than C++.


What are the similarities between java and c plus plus?

Java is related to C and C++ in the structure of programs composed with each language. All of them are object-oriented-programming languages (oop languages). Java is meant primarily for web apps C is meant primarily for programming servers C++ is meant primarily for large applications bbb


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.