/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package banco_imobiliario.AbstractFactoryLogradouro;
import banco_imobiliario.model.Logradouro;
import banco_imobiliario.model.LogradouroPartida;
/**
*
* @author Andre
*/
public class LogradouroPartidaFactory implements LogradouroFactory {
@Override
public Logradouro criarLogradouro(int indice) {
LogradouroPartida partida = new LogradouroPartida();
partida.setIndice(indice);
partida.setNome("Partida");
partida.setSalario(indice);
return partida;
}
}