Android Design Patterns: The Singleton Pattern

What Is the Singleton Pattern? The Singleton Pattern is a software design pattern that guarantees a class has one instance only and a global point of access to it is provided by that class. Anytime multiple classes or clients request for that class, they get the same instance of the class. This Singleton class may

SHARE ON

Android Design Patterns: The Observer Pattern

What Is the Observer Pattern? The Observer Pattern is a software design pattern that establishes a one-to-many dependency between objects. Anytime the state of one of the objects (the “subject” or “observable”) changes, all of the other objects (“observers”) that depend on it are notified. Let’s use the example of users that have subscribed to receive offers from Envato

SHARE ON