LearnYard - Free Programming & DSA Blogs | Read, Code, Excel
  • C++ Course
  • DSA Course
  • Online Assessment DSA Questions
  • DSA for Frontend Interview
  • Frontend Interview Experience
  • Low Level Design
  • High Level Design
  • Java Course
  • About
  • Feedback
Sign in Subscribe

Design Patterns

A collection of 2 posts
Factory Design Patterns
Design Patterns

Factory Design Patterns

I find this factory word quite confusing when talking about design patterns. there is static factory, then factory or Simple factory, then factory method and abstract factory. Let’s understand each of them one by one. Static factory method: This was a design technique not present in Gang of four
14 Apr 2024 5 min read
Singleton Design Pattern
Design Patterns

Singleton Design Pattern

Definition The Singleton design pattern ensures a class has only one instance and provides a global access point to it. This means you control object creation and guarantee there’s only ever a single instance throughout your application. Applications * Use the Singleton pattern when a class in your program should
14 Apr 2024 3 min read
Page 1 of 1
LearnYard - Free Programming & DSA Blogs | Read, Code, Excel © 2026
Powered by Ghost