×
Home Discussions Write at Opengenus IQ
×
  • About
  • Track your progress
  • Deep Learning Projects
  • Python Projects
  • Join our Internship 🎓
  • RANDOM
  • 100+ Graph Algorithms
  • 100+ DP Problems
  • 50+ Linked List Problems
  • 50+ Array Problems
  • One Liner
  • 50+ Binary Tree problems
  • Home
  • Rust Projects

design pattern

A collection of 6 posts

Software Engineering

Understanding Singleton Design Pattern in C++ with 4 techniques

Singleton pattern in C++ is a design pattern which prevents multiple objects of a class to exist. This is a very useful and widely used design pattern

Harshita Sahai Harshita Sahai
Software Engineering

Null Object Design Pattern in C++

Null object pattern is a design pattern that simplifies the use of dependencies that can be undefined. This is achieved by using instances of a concrete class that implements a known interface, instead of null references.

Harshita Sahai Harshita Sahai
Software Engineering

Understanding Observer Pattern in C++ in depth

The Observer Pattern is a design pattern where changes in one object can be notified to other objects. This is important as with this, we can use objects that have dependency

Harshita Sahai Harshita Sahai
Software Engineering

Understanding Abstract Factory Pattern in C++ with an example

Abstract factory pattern provides a framework that allows to create objects that follows a pattern. So at runtime, abstract factory is coupled with any desired factory which can create objects of desired type.

Harshita Sahai Harshita Sahai
C++

Builder Pattern in C++

Builder pattern in C++ aims to “Separate the construction of a complex object from its representation so that the same construction process can create different representations.” It is used to construct a complex object step by step and the final step will return the object.

Harshita Sahai Harshita Sahai
C++

Factory Pattern in C++

Factory method also known as a static class is a creational design pattern, i.e. it is related to object creation. In this we create object without exposing the creation logic to client and the client use the same common interface to create new type of object. Idea is to use a static member function

Harshita Sahai Harshita Sahai
OpenGenus IQ © 2023 All rights reserved ™ [email: team@opengenus.org]
Top Posts LinkedIn Twitter