docs: adding more test examples

This commit is contained in:
amin 2024-07-11 16:27:46 +01:00 committed by zanninso
parent 347089d53c
commit a9a53977e9
1 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,6 @@
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
@ -70,8 +68,8 @@ public class ExerciseRunner {
```shell
$ javac *.java -d build
$ java -cp build ExerciseRunner
This is ConcreteProductA
This is ConcreteProductB
This is ConcreteProductA.
This is ConcreteProductB.
Invalid product type
$
```