Good evening, I have a question. How do I add an abstract class in a method done in an interface as parameter? this in order to call implementing the interface can add any type of abstract class. My interface is this
public interface DBM {
String STRING_TYPE = "text";
String INT_TYPE = "integer";
String BOOLEAN_TYPE = "boolean";
String FLOAT_TYPE = "float";
String POINT_TYPE = "point";
String TABLA_BAR="bar";
String CAMPO_ID_BAR="id_bar";
String CAMPO_NOMBRE_BAR="nom_bar";
String CAMPO_CALIFICACION_BAR="cal_bar";
String CREAR_BAR="CREATE TABLE "+TABLA_BAR+"" +
"("+CAMPO_ID_BAR+" "+INT_TYPE+" "+CAMPO_NOMBRE_BAR+" " +
""+STRING_TYPE+" "+CAMPO_CALIFICACION_BAR+" "+FLOAT_TYPE+")";
String ELIMINAR_BAR="DROP TABLE IF EXISTS "+TABLA_BAR;
boolean add(**aquí quiero ingresar la clase abstracta**);
boolean delete(**aquí quiero ingresar la clase abstracta**);
boolean update(**aquí quiero ingresar la clase abstracta**);
ArrayList getAll(**aquí quiero ingresar la clase abstracta**);
}
and when the implement can use a class for example
boolean add(Clientes cliente){
return true;
}