what are the disadvantages of C++?
Answer Posted / meet
There is not so strict/strong type checking in C++ like Java & C#. Pointers can be easily be misused. Dynamic memory management is error-prone because the lack of automatic garbage collection like Java & C#. There isn't bound checking on arrays. Friend functions & friend classes can be misused.
Supports stack allocated objects so results in memory wastage but provides runtime efficiency.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
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.
When not to use object oriented programming?
• What are the desirable attributes for memory managment?
What are benefits of oop?
What is interface? When and where is it used?
What are the benefits of oop?
How to use CMutex, CSemaphore in VC++ MFC
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is the difference between a mixin and inheritance?
What is persistence in oop?
Why is polymorphism important in oop?
What is inheritance write a program to show use of inheritance?
What is the benefit of oop?
What is variable example?
What are the important components of cohesion?