Blogs Hub

by AskGif | Aug 01, 2018 | Category :coding

What is State pattern?

What is State pattern?

The state pattern is a behavioural software design pattern that implements a state machine in an object-oriented way. With the state pattern, a state machine is implemented by implementing each individual state as a derived class of the state pattern interface and implementing state transitions b

read more...

by AskGif | Aug 01, 2018 | Category :coding

What is Iterator pattern?

इटरेटर पैटर्न क्या है?

In object-oriented programming, the iterator pattern is a design pattern in which an iterator is used to traverse a container and access the container's elements. The iterator pattern decouples algorithms from containers; in some cases, algorithms are necessarily container-specific and thus canno

read more...

by AskGif | Aug 01, 2018 | Category :coding

What is Template pattern?

टेम्पलेट पैटर्न क्या है?

In software engineering, the template method pattern is a behavioural design pattern that defines the program skeleton of an algorithm in an operation, deferring some steps to subclasses. It lets one redefine certain steps of an algorithm without changing the algorithm's structure. The template m

read more...

by AskGif | Aug 01, 2018 | Category :coding

What is Command pattern?

कमांड पैटर्न क्या है?

In object-oriented programming, the command pattern is a behavioural design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for

read more...

by AskGif | Aug 01, 2018 | Category :coding

What is Observer pattern ?

पर्यवेक्षक पैटर्न क्या है?

The observer pattern is a software design pattern in which an object, called the subject, maintains a list of its dependents, called observers, and notifies them automatically of any state changes, usually by calling one of their methods.   It is mainly used to implement dist

read more...

by AskGif | Aug 01, 2018 | Category :coding

What is Strategy pattern?

रणनीति पैटर्न क्या है?

In computer programming, the strategy pattern (also known as the policy pattern) is a behavioural software design pattern that enables selecting an algorithm at runtime. Instead of implementing a single algorithm directly, code receives run-time instructions as to which is a family of algorithms

read more...