mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 14:59:25 +00:00
#355 document, abstract base, traits and example domain
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.iluwatar.abstractdocument.domain;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import com.iluwatar.abstractdocument.AbstractDocument;
|
||||
|
||||
public class Part extends AbstractDocument implements HasModel, HasPrice {
|
||||
|
||||
protected Part() {
|
||||
super(new HashMap<String, Object>());
|
||||
}
|
||||
|
||||
protected Part(Map<String, Object> properties) {
|
||||
super(properties);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user