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


Please Help Members By Posting Answers For Below Questions

What are the advantages of using friend classes?

617


What are vectors used for in c++?

614


What is the difference between #define debug 0 and #undef debug?

634


Do vectors start at 0 c++?

522


Is c++ pass by reference or value?

562






What is the difference between ++ count and count ++?

569


Can constructor be private in c++?

601


Write a note about the virtual member function?

595


What is virtual base class?

561


What is a friend function in c++?

570


How is c++ different from java?

555


What are the new features that iso/ansi c++ has added to original c++ specifications?

576


What is static class data?

565


Why iomanip is used in c++?

632


What is searching?

640