Pregunta de entrevista de Elbit Systems

Question about MVC model, how would you use the filtering function from last questions as interchangeable functions in the model

Respuesta de la entrevista

Anónimo

4 jul 2022

create a class "Filter" with 1 method that is inherited by each filtering function and overriding a function that receives as argument a vector of points (rest arguments are data members). Use filter* at model, controller can set different filter* due to polymorphism