Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface JsonParser
- {
- public string getJsonValue();
- }
- public class SubTypeA implements JsonParser
- {
- private BaseType instanceOfBaseType;
- public SubTypeA(BaseType baseType)
- {
- instanceOfBaseType = baseType;
- }
- public string getJsonValue()
- {
- // do whatever you have to do
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement