What is design patterns in C++?

Answer Posted / nupur

design patterns are the solution of a problem which arises
when developing software within particular context.
each pattern describes a problem which occurs over and over
again in our environment,and then describes a core solution
of that problem in such a way that this solution can be
used again millons of times .
category of design patterns:-
creational:-singleton,protype,abstract etc.
structural:-adapter,bridge,composite etc.
behavioural:-interpreter,iterator,command etc.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is abstraction needed?

561


Why is oop better than procedural?

600


Describe these concepts: Polymorphism, Inheritance and Abstraction.

604


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1403


Can private class be inherited?

615






Can destructor be overloaded?

593


What is polymorphism and its types?

590


What is encapsulation in oops?

534


What are the two different types of polymorphism?

667


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6483


What is the fundamental idea of oop?

634


Why is abstraction used?

600


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1694


What is the difference between a mixin and inheritance?

518


What is persistence in oop?

667