Capping is an operation that prevents surface treatment from entering holes that don't open, and helps prevent leakage after anodic treatment. Capping facilitates electrical contact.
Masking consists in applying a specific adhesive tape or a layer of plastic paint to a portion of the part on which no surface treatment is to be applied.