1.

How can you differentiate between C, C++, and Java?

Answer»
C++Java
It is a procedural LANGUAGE.It is an object-oriented language (not purely object-oriented as it is POSSIBLE to write code without the creation of a class).It is an object-oriented language (not purely object-oriented, as it supports primitive data types).
It supports pointers.It supports pointers.It does not support pointers.
Platform dependent languagePlatform dependent languagePlatform INDEPENDENT language
Not possible to create our own package.It is allowed to create the package in C++.Here, we can create our package and can include the classes.
The concept of inheritance was not implemented.We can use MULTIPLE inheritances in C++.It does not support multiple inheritances.
It does not support data hiding, so data is less secured as it can be accessed by the OUTSIDE world.It supports data hiding, so data cannot be accessed by the outside world.It supports data hiding, so data cannot be accessed by the outside world.


Discussion

No Comment Found