Design Patterns: Implementing Command Design Pattern for Functionalities in a Shopping System

Level : Advanced
Mentor: Shailendra Chauhan
Type : GuidedLab
Points : 10
Duration : 00:25:00

Lab Details

Problem Statement:

A lab to follow the Command Design Pattern while doing your code in C#.

  • Design a system with different functionalities like adding items to a cart or placing an order, utilizing classes such as ICommand, AddToCartCommand, PlaceOrderCommand, ShoppingCart, and Order.
  • Implement the Command pattern to represent these functionalities as separate objects (commands) that can be executed, incorporating classes like CommandInvoker and Program.

Lab Objective:

Upon completion of this lab, you will be able to:

  • Understand the command design pattern.
  • Implementing functional separation in a shopping system.
  • Creating executable commands to do various system activities.


You should install the following software on your machine:

  • VS Code or Visual Studio
  • .NET SDK
Self-paced Membership
  • 22+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
Accept cookies & close this