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
What are inline functions? What is the syntax for defining an inline function?
Define a constructor - what it is and how it might be called (2 methods)?
What is protected inheritance?
What is fixed in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is vector processing?
What are the three forms of cin.get() and what are their differences?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
Write a C++ Program to check whether a number is prime number or not?
What is the use of main function in c++?
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Explain class invariant.
What does it mean to declare a member function as virtual?
Can you declare an array without a size in c++?
Who made c++?