A relay is classified into many types, a standard and generally used relay is made up of electromagnets which in general used as a switch.
See All 95 Episodes of "System Protection"