What is the difference between C++ and java?
Answer Posted / ridicule
The main difference b/w c++ & java is:
* c++ is a platform dependent language.
* but java is platform independent language.it can be run
on every system which contain java virtual machine(jvm)
*both use oop concept,
we can write a c++ pgm without using class but class is
must in java;
that is java is pure oop language
Is This Answer Correct ? | 24 Yes | 5 No |
Post New Answer View All Answers
What are oops functions?
Why do we use class in oops?
What is object-oriented programming? Webopedia definition
write a program to find 2^n+1 ?
What is the use of oops?
what type of questions
What are main features of oop?
What is oops with example?
What is overloading in oops?
Can we create object of interface?
What is the types of inheritance?
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 the features of oop?
How do you answer polymorphism?
How is class defined?