Skip to content

ankitbhowmick/designpattern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

designpattern

Design Pattern Implementation in JAVA

The repository contains examples of commonly used creational design patterns like Singleton, Factory ,Builder and AbstractFactory pattern

Singleton Pattern : The idea of Singleton Pattern is to implement only a single instance of the class per JVM, and provide a global point of access to it.

Features of Singleton Pattern :

  1. Private Constructor - This doesn't allow other classes to instantiate the class using new keyword.
  2. Public Accessor Method - This method return the instance of the Singleton class.

Releases

No releases published

Packages

No packages published

Languages