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
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
what are the different types of qualifier in java?
What is abstraction in oops with example?
what is different between oops and c++
What is difference between oop and pop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
Advantage and disadvantage of routing in telecom sector
What is overloading in oops?
Why interface is used?
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.
Why do we use class?
How does polymorphism work?
what type of question are asked in thoughtworks pair programming round ?
2. Give the different notations for the class.\
• What are the desirable attributes for memory managment?