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
What is cohesion in oop?
What is object and example?
Are polymorphisms mutations?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is abstraction with example? What is polymorphism give a real life example? What is abstraction oop? Describe these concepts: Polymorphism, Inheritance and Abstraction. What is the purpose of polymorphism? why reinterpret cast is considered dangerous? What is encapsulation example? Why do we use inheritance? Why it is called runtime polymorphism? How can you overcome the diamond problem in inheritance?