jeudi 24 novembre 2016

suitable design pattern for below scenario in java

Please suggest suitable design pattern for below scenario in java

Class InfoParser{
public Map<String,String> parseData(List<String>);
}
Class QuestionParser{
public Map<String,String> parseData(List<String>,Map<String,String>);
}

Even you can add interface to the above code,but which design patterns suits here.

Aucun commentaire:

Enregistrer un commentaire