docs: fix typo and adding more details.

This commit is contained in:
zanninso 2024-07-09 16:30:00 +01:00 committed by zanninso
parent 51a5af45f7
commit 514423cb67
1 changed files with 3 additions and 1 deletions

View File

@ -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`
}
}