Answer Posted / devi
c++ java
1) Support Pointers 1) Doesnot support pointers
2) support Multiple Inheritance 2) Indirectly supported
Interface
3) Storage classes 3) static only allowed
4) struct,union,enum 4) Not supported
5) Destructor used 5) Automatically performed
destroy the object using finalize method
6) Operator Overloading 6) Not supported operator
Overloding
7) Preprocessor allowed 7) Not supported
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is pointer in oop?
What is the full form of oops?
What is the purpose of enum?
#include
Can you inherit a private class?
What is the types of inheritance?
What is meant by multiple inheritance?
What makes a language oop?
What is the difference between static polymorphism and dynamic polymorphism?
Which type does string inherit from?
Why is abstraction needed?
What are the types of abstraction?
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.
How do you define a class in oop?
What is polymorphism explain its types?