Factory DP
Factory DP
PATTERN
Factory Method
1
TEAM MEMBERS
Md. Abdul Muqtadir Rashikh Ahmad
210041203 210041255
OVERVIEW
Introduction
When to use
Use cases
Implementation
Class diagram
Step 1 to 3
Test and result
3
INTRODUCTION
USE CASES
WHEN TO USE
IMPLEMENTATION
OVERVIEW
IMPLEMENTATION
CLASS DIAGRAM
We’re going to implement following class diagram with step by step explaination
7
IMPLEMENTATION
STEP 1 TO 3
IMPLEMENTATION
STEP 1 TO 3
IMPLEMENTATION
STEP 1 TO 3
TEST
We can easily test our pattern by
just writing this code in our main
function.
First create a shape factory and use
its getShape method in order to
draw new objects.
RESULT
THANK YOU