Design Principles & Patterns Handson solutions cognizant

06-02-DP-Handson Design Principles and Patterns Cognizant

In this post we are going to cover the Design Principles and Patterns 06-02-DP-Handson solution asked in Cognizant.

Objectives

  • Demonstrate code modifications are done for any 2 of the SOLID principles
    • Modify code to implement Single responsibility, Interface segregation
  • Demonstrate the usage of Abstract factory design pattern
    • Factory of objects created using factory design pattern
  • Demonstrate the usage and implementation of Singleton design pattern
    • Realtime instance of significance of one object instance in memory, Eg: single DB connection object; how to achieve it using Private Static Constructor, thread safety

Analyze and implement the following design patterns through real life problems

Implement all these problems thru a Console application

Singleton:

Please refer to the handson document ‘GOF_SingletonHandsOn’ under Reference folder.

Abstract factory:

Please refer to the handson document ‘GOF_Abstract FactoryHandsOn’ under Reference folder.

Zip File is given below, Click on download and submit directly in tekstac GenC platform.

Similar Posts