Posts

Showing posts from June, 2021

Introduction of Abstract Factory Design Pattern in C#, C++ and Java

Image
Project Structure :  Abstract Product Create the interface for products, This declares an interface for a type of product object  Abstract Product code 1 namespace Demo_Abstract_Factory_Design_Pattern.Interface {     /// <summary>     /// IAbstractLowPriceCarProduct info     /// </summary>     public interface IAbstractLowPriceCarProduct     {         string GetLowPriceCarProductInfo();       }  } Abstract Product code 2 namespace Demo_Abstract_Factory_Design_Pattern.Interface {     /// <summary>     /// IAbstractHighPriceCarProduct interface     /// </summary>     public interface IAbstractHighPriceCarProduct     {         string GetHighPriceCarInfo();     } } Product  Create class objects for products, This defines a product object to be created by the corresponding concrete...

What is software design patterns

Image

What is singleton software design patterns ?

Image
  Introduction of Singleton Design Pattern •         What is Singleton Design Pattern? •         Rules or Check list of Singleton Design Pattern? •         Where do we use Singleton Design pattern? •         Demo Code Example: •         Normal Singleton Design Pattern •         Without Thread Safe Singleton Design Pattern •         Thread Safe Singleton Design Pattern   What is Singleton Design Pattern? Singleton pattern is one of the simplest or lazy design patterns, general for all languages. Example C#, C++, Java and all OOPs supporting languages. This is type of creational design pattern. This pattern involves a single class which is responsible to create an object while making sure...