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 polymorphism what are the different types of polymorphism?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is abstraction example?
What type of loop is a for loop?
Why do we use inheritance?
Why is abstraction used?
What is polymorphism and types?
What is inheritance in oop?
Why do we use encapsulation in oops?
What is overriding vs overloading?
What is abstraction with example?
What is the main feature of oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is oops concept with example?