Mindmap
EL PATRON SINGLETON

Inhalt der Mindmap
EL PATRON SINGLETON
DESCRIPCION
- DEFINICION
- Es una forma de asegurar una única instancia de una clase
- Define una instancia que permite que los clientes accedan a su única intancia
- Puede ser responsable de crear su única instancia
- DEFINICION
ESTRUCTURA
EJEMPLO EN C#
- public class Singleton { private static Singleton instance = null; private Singleton() {} public static Singleton GetInstance() { if (instance == null) instance = new Singleton(); return instance; } }
REPRESENTACIÓN EN CLASES
Bilder und Dateien der Mindmap
Informationen
- Beschreibung
- Mindmap am EL PATRON SINGLETON, erstellt von gonzalo alarcon am 15/11/2017.
- Erstellt von
- gonzalo alarcon
- Aufrufe
- 0
- Bewertung