Respuesta :

Well if this is what your asking this would be called the trait approach:)