According to an embodiment of the present invention, a connector includes a plurality of contacts which can be electrically connected to a counterpart connector and are separated from each other. At least one among the plurality of contacts can include a magnet and a conductive housing enclosing at least one surface of the magnet. Other embodiments are possible.