Successfully reported this slideshow.

Design Pattern 5. Singleton Pattern

621 views

Published on

Refers:
Head First Design Pattern

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Design Pattern 5. Singleton Pattern

  1. 1. <ul>Singleton Pattern </ul><ul>Company Name </ul>
  2. 2. <ul>Singleton Pattern </ul><ul><li>Problem : </li><ul><li>We want a pattern that it istantate a single copy of the object
  3. 3. Only a copy of the object </li></ul><li>Solution </li><ul><li>Singleton pattern : </li><ul><li>Construttore privato
  4. 4. Oggetto statico
  5. 5. Method instanzia oggetto se è null </li></ul></ul></ul>
  6. 6. <ul>Singleton Pattern Code </ul>
  7. 7. <ul>Singleton Pattern Code </ul>

×