Skip to content

[20#06#22] Factory design patterns

Tanmay Kacker edited this page Jun 20, 2022 · 3 revisions

Agenda

  • Simple Factory
  • Factory Method
  • Abstract Factory

References

Reading List

Source Code

Simple Factory

Abstract Factory and Factory methods

Assignment

Modify theme package to allow client to dynamically create themes instead of hardcoding it.

Currently, only primary theme is being used but the client should be able to switch to dark theme based on input. You can assume the input is a constant in the client file.

Effort - ~30 minutes