From 514423cb67458f3ee368bf9f8a1dd53cb8f2ecd9 Mon Sep 17 00:00:00 2001 From: zanninso Date: Tue, 9 Jul 2024 16:30:00 +0100 Subject: [PATCH] docs: fix typo and adding more details. --- subjects/java/checkpoints/factory-blueprint/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subjects/java/checkpoints/factory-blueprint/README.md b/subjects/java/checkpoints/factory-blueprint/README.md index cc242b280..e5a19b160 100644 --- a/subjects/java/checkpoints/factory-blueprint/README.md +++ b/subjects/java/checkpoints/factory-blueprint/README.md @@ -4,6 +4,8 @@ You are given an incomplete Factory design pattern implementation with some incorrect parts. Complete and fix the class to demonstrate your understanding of how the Factory design pattern works. +The method `showDetails` should print the class name 'ConcreteProductA' for `ConcreteProductA` and so on. + ### Expected Classes ```java @@ -24,7 +26,7 @@ public class ConcreteProductB { // Factory class public class Factory { - public ConcreteProductB createProduct(String type) { // the type parametre accept two values `A` and `B` + public Product createProduct(String type) { // the type parametre accept two values `A` and `B` } }