Singleton design pattern (plus a Java example)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,758
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 14, 2011

In this video I talk about design patterns in general and the main focus is on the Singleton pattern. There is also an example of a program using the Singleton pattern.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • Nicely explained. Two more things : getInstance method should be synchronized. And clone method should be overridden.

  • Not threadsafe. The getInstance either needs to be synchronized, the instance could be instantiated in a static block, or, arguably most correctly, you can convert the class to an enum.

  • very nicely explained..well done!!

  • really useful, thank you , keep it updating with other design patterns with examples

  • well done bugger 

  • wonderful explaination

  • good job!

  • Yup, pretty good. The example of one pop-up instead of many pop-ups is damn good.

  • good job dude!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more