Heat a small frying pan over medium heat with butter or oil.
Put egg yolks in a frying pan, for a couple of minutes, then turn over to finish for another couple of minutes. Split in half to test for doneness, make sure they are cooked through the center.