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.