Singleton pattern

455 views

Published on

Singleton Pattern By Emmanuel and Roy

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
455
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Singleton pattern

  1. 1. Presented By :Emmanuel : Roy
  2. 2.  The Singleton Pattern Ensures that a class has only one instance
  3. 3.  Every Object In an application is making use of the same Global Resource
  4. 4.  Good to Managed Pool Off Resources e.g connection or thread pools(For Resource Intensive Object)
  5. 5.  ItCan Not Be Sub classed(Its Constructors is Private)
  6. 6. A private Constructor STACTIC Public Method
  7. 7. Encapsulation: It Hides ItsConstructors
  8. 8.  No Public Constructors Only one Instance Is Created All Methods are Usually Static A Singleton Class cannot be subclasses because it its constructors are private
  9. 9.  APPRECIATION

×