A material that exhibits the property of attracting certain substances or objects.
They can also produce a magnetic field circling it.
Like poles
Like poles are the same poles of different magnets.
Example:- North-North, South-South.
The reason why like poles of a magnet repel each other
There are two poles in a magnet South pole and a North pole.
The line of forces emerging from the north pole is always opposite to the one arising from the south pole and vice versa.
When the like poles ( any of the examples mentioned above) of two magnets are brought together, the lines of forces of each magnet are in the opposite directions which is why they repel each other.