What is the main difference between C++ and Java

Answer Posted / selva kumar.r

In C++ we can use Inheritance.
there are various types of inheritance in c++
they are
* Simple / Single
* Multilevel
* Hierarchical
* Multiple
* Hybrid

Wheares in Java instead of Inheritance, we can use Interface

This is the major and main difference between C++ and
Java.

Is This Answer Correct ?    17 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in oops?

596


What is abstraction example?

615


class type to basic type conversion

1833


What is ambiguity in inheritance?

622


What is the difference between a constructor and a destructor?

609






What is abstraction in oop?

631


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1631


Is react oop?

607


What does oop mean in snapchat?

680


What is for loop and its syntax?

596


What is data binding in oops?

582


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1780


When not to use object oriented programming?

567


What is inheritance write a program to show use of inheritance?

611


What is polymorphism and example?

590