Student Reviews
( 5 Of 5 )
1 review
Video of Factory Method Design Pattern Explained Simple Factory vs Factory Method in Java Geekific in Design Patterns course by Geekific channel, video No. 4 free certified online
The Factory Method is one of the most powerful creational design patterns, but before we understand it, we first need to look at the Simple Factory idiom. In this video, we break down both approaches using a fun real-world example of a burger restaurant and its delivery app. We’ll see how relying on a simple factory helps centralize object creation, and then understand why the Factory Method pattern goes one step further by using inheritance to fully decouple creation from usage.
What you’ll learn:
Simple Factory Idiom: Centralizing object creation in one place
Factory Method Pattern: Delegating product creation to subclasses
UML Breakdown: How clients, creators, and products interact
Open/Closed Principle in action: Extending menus without breaking existing code
Why Factory Method is better suited when products grow in complexity
By the end, you’ll clearly understand when to use a simple factory versus when to rely on the factory method, and how both help us write more flexible, maintainable, and scalable software that follows SOLID principles. Perfect for interviews, project design, or just leveling up your OOP skills.
Our Discord, GitHub repo, and socials: https://linktr.ee/geekific
Chapters:
00:00 Introduction
00:08 The Burger Example & Simple Factory Idiom
02:25 Why Simple Factory Isn’t Enough
03:13 Enter the Factory Method Pattern
05:09 UML Structure of Factory Method
05:36 When & Why to Use It
06:19 What Happens When We Add Pizzas?
06:52 Thanks for Watching!
If you found this video helpful, check other Geekific uploads:
- Big-O Notation Explained : https://youtu.be/APGPA3nN5a4
- Mastering Object Oriented Programming : https://youtu.be/OzQnacVGV7c
- Association vs Aggregation vs Composition : https://youtu.be/teyeTsjhIr4
- Trees Compared and Visualized : https://youtu.be/hmSFuM2Tglw
- Generics and Wildcards in Java : https://youtu.be/FXAUXvPNKi8
- Sorting Algorithms Complexities: https://youtu.be/UqmKiz2P0Lw
- Domain-Driven Design Made Simple : https://youtu.be/H5--9pMmuK4
- Clean Architecture with Spring Boot: https://youtu.be/pv-qFt69Bng
#geekific #factorymethod #designpatterns #java #oop #softwaredesign #cleancode