Alex Rivera | Logout

Do we have design patterns in C++ as we have in java?

Asked 2010-01-31T12:55:36.710
9

As we have so many design patterns in java, like wise do we have any in c++.Or can we use the same sort of patterns in c++.

Edit
Report

1 Answer

3

Design patterns are pretty much language agnostic, although they will fit into some programming paradigms and not others. In that regards, many patterns in Java will work very well with C++.

Meanwhile, C++'s rich (and twisted, some could say!) templating system allows for very interesting implementation of standards patterns, see for example Modern C++ Design from Alexandrescu and its very interesting policy-based design.

answered 2010-01-31T13:00:36.637

Your Answer