Save this video — free

UNC COMP 301 - F26/Lec 11 - UML; Creational Design Patterns: Singleton, Multiton, Factory

Muhammad Sayeed Ghani · 1:15:26 · Watch on YouTube

UNC COMP 301 - F26/Lec 11 - UML; Creational Design Patterns: Singleton, Multiton, Factory Watch on YouTube →

Overview

Muhammad Sayeed Ghani introduces UML class diagrams, then explains three creational patterns: Singleton for one shared instance, Multiton for one instance per unique key, and Factory Method for centralizing subclass creation. Examples include a camera, students indexed by UNC PID, and email or text notifications; the lecture closes by showing how inheritance across multiple features can cause exponential class explosion.

Key takeaways

Chapters

0:00 Why UML Helps Visualize Class Relationships
5:19 UML Class Boxes, Fields, Methods, and Visibility
9:53 Representing Person Interfaces and Inheritance
14:17 Course UML: Aggregation Versus Composition
20:02 Roster Multiplicity, Main-Class Dependencies, and UML Workflow
27:47 Creational Patterns and Singleton Use Cases
34:25 Building a Singleton with a Private Constructor
42:34 Singleton Behavior, UML, and Design Tradeoffs
45:28 Multiton: One Student Object per Unique PID
50:37 Implementing Multiton with a Static Student Directory
55:19 Factory Method: Centralizing Notification Subclass Selection
1:02:31 Factory Method Moves Creation Logic Out of Client Code
1:05:43 Factory UML and Comparison of the Three Patterns
1:11:07 Composition Over Inheritance and the Class-Explosion Problem
1:14:16 Why Independent Dog Features Favor Composition

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Muhammad Sayeed Ghani.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.