Made apply method abstract in Constraint