Skip to content

pefyli/design_pattern_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

design_pattern_practice

This repo is a practice project for the design patterns, written by Java.

Design Patterns

Design patterns are typical solutions to commonly occurring problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code.

Singleton

A Singleton is a class that allows only a single instance of itself to be created and gives access to that created instance. It contains static variables that can accommodate unique and private instances of itself. It is used in scenarios when a user wants to restrict instantiation of a class to only one object.

Factory

A Factory is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.

About

This repo is a practical project to practice the design patterns with Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages