A canon is a compositional technique used in what activity?

Classical music composition.