Boxes come in two basic types Metal and Plastic.
For general residential construction the choice is left up to the contractor and if the box is not exposed then it will most often be a plastic box. Exposed boxes like the ones found in unfinished basements and outside the home are made of metal this is to reduce the risk of breaking the box and then having exposed wires.
Installing …