What are advantages and disadvantages of Design patterns?

Answer Posted / prits

Advantages:
A design pattern is:

a standard solution to a common programming problem

a technique for making code more flexible by making it meet
certain criteria

a design or implementation structure that achieves a
particular purpose

a high-level programming idiom

shorthand for describing certain aspects of program
organization

connections among program components

the shape of an object diagram or object model

DisAdvantages:
Design patterns may increase or decrease the
understandability of a design or implementation. They can
decrease understandability by adding indirection or
increasing the amount of code.

Is This Answer Correct ?    58 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between c++ and java.

854


What is difference between class and structure in c++?

859


Difference between Abstraction and encapsulation in C++?

818


What are the benefits of c++?

780


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2214


How the delete operator differs from the delete[]operator?

845


How long it will take to learn c++?

795


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

921


What is the real purpose of class – to export data?

840


How do you invoke a base member function from a derived class in which you’ve overridden that function?

795


What do you mean by “this” pointer?

795


What are mutator methods in c++?

901


Out of fgets() and gets() which function is safe to use and why?

929


What is a friend function in c++?

1018


Explain the auto storage classes in c++.

823