anonymous
  • anonymous
can any body know design pattern in c++ ??
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
goformit100
  • goformit100
sir plz clear the question to me
anonymous
  • anonymous
yep, what do you want to know about them
anonymous
  • anonymous
which design pattern

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
How to implement singleton design in C++?
anonymous
  • anonymous
The synchronize C++ attribute implements support for synchronizing the target method of an object. Synchronization allows multiple objects to use a common resource (such as a method of a class) by controlling the access of the target method. public class Singleton { private static Singleton instance = null; private Singleton() { } public static synchronized Singleton getInstance() { if (instance == null) { instance = new Singleton(); } return instance; } }
anonymous
  • anonymous
thanks kevsturge for replay this is helpfull for me
anonymous
  • anonymous
ok, if you have any trouble implementing it let me know
anonymous
  • anonymous
Disregard kevsturge's response as he targets Java, not C++, as evident by both his mentioning of a synchronized keyword and the code he posted. A C++ singleton pattern implementation can be found here: http://stackoverflow.com/a/1008289/591495 Note, however, that in most contexts, the singleton is actually viewed as an anti-pattern. Be careful in how you apply it.

Looking for something else?

Not the answer you are looking for? Search for more explanations.