What are advantages and disadvantages of Design patterns?
Answer Posted / paul
The advantages are that design patterns are solutions to repetitive problems in object orientated programming (solutions that can be re-used over and over and applied to different areas and different problems). They are templates for you to base your solutions on.
Disadvantages are picking the correct design pattern and understanding how to implement that pattern to your scenario and knowing what to name your classes, so as to make it clearer for future programmers.
| Is This Answer Correct ? | 6 Yes | 14 No |
Post New Answer View All Answers
What is a dangling pointer in c++?
What is Destructor in C++?
How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?
Why is polymorphism useful?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
How would you differentiate between a pre and post increment operators while overloading?
Explain the purpose of the keyword volatile.
What is a c++ vector?
What is the use of class in c++?
What is the v-ptr?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
List the issue that the auto_ptr object handles?
What are arrays c++?
How would you use the functions sin(), pow(), sqrt()?
What does new return if there is insufficient memory to make your new object?