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
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
What is a Default constructor?
By using c++ with an example describe linked list?
What is a try block?
How the keyword struct is different from the keyword class in c++?
Which software is best for c++ programming?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
What is a float in c++?
What is constant in c++ with example?
How come you find out if a linked-list is a cycle or not?
Does a derived class inherit or doesn't inherit?
Describe linked list using C++ with an example.
How would you use the functions memcpy(), memset(), memmove()?
What do you mean by function pointer?
Is it possible to write a c++ template to check for a function's existence?