Materials for bodies in part

Hello, i try to apply materials in a part with different body, so i put a material, but he is apply for the part not a body.
How i can apply a differents materials for each bodies in a part ? 
Thanks