I have an interface as shown below
public interface ATMbusinessRule {
public Map<String, List<ATM>> exceute(String pobCode, String plientlogo) throws BuisnessRuleException;
}
now i have two different classes as shown below, the first one
public class MaestroCardBusinessZZNFRuleImpl implements ATMbusinessRule
{
public Map<String, List<ATM>> exceute(String pobCode, String ClientId) throws BuisnessRuleException {
}
}
and the second class is shown as
public class MaestroCardBusinessXXNFRuleImpl implements ATMbusinessRule {
public Map<String, List<ATM>> exceute(String pobCode, String plientlogo) throws BuisnessRuleException {
{
}
}
now i want to change this design as what I am planning to write a simple class which will contain two different methods and the caller class will directly call these two methods and get the return value but i am thinking where the interface will fit in this criteria.Als please let me know which other design criteria will be the best
Aucun commentaire:
Enregistrer un commentaire