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 one-definition rule (odr).

635


What is a dynamic binding in c++?

520


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1635


What is the difference between new() and malloc()?

607


What is difference between c++ 11 and c++ 14?

564






Should you pass exceptions by value or by reference?

687


Explain some examples of operator overloading?

635


What are the uses of static class data?

626


How do you declare A pointer to function which receives an int pointer and returns a float pointer

668


What is the difference between #import and #include in c++?

584


Is c++ an integer?

566


what is VOID?

621


What are the comments in c++?

562


Difference between a copy constructor and an assignment operator.

556


What is a far pointer? where we use it?

606