A rivet, also known as a nail-shaped object, is commonly used to connect two parts or members together. It consists of a through hole and a cap on one end. The connection between the riveted parts is achieved through their own deformation or interference.