added abstract factory example
This commit is contained in:
8
src/learn/simple_abstract_factory/ProductB2.java
Normal file
8
src/learn/simple_abstract_factory/ProductB2.java
Normal file
@@ -0,0 +1,8 @@
|
||||
package learn.simple_abstract_factory;
|
||||
|
||||
public class ProductB2 implements AbstractProductB {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ProductB2";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user