what is difference between c++ language and java language
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 ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is polymorphism in oops with example?
Which type does string inherit from?
What is polymorphism what is it for and how is it used?
what is graphics
What makes a language oop?
what are the realtime excercises in C++?
Which is not an object oriented programming language?
Why do we use inheritance?
What is property in oops?
What is a null tree?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What are benefits of oop?
Why do we use oop?
What is overriding in oops?
write string class as your own class in java without using any built-in function