Finely chop the onion and carrot.
Heat cooking oil in a pan, then sauté the chopped onion and carrot.
Add the rice and stir-fry well together.
Crack the eggs into the pan and scramble them.
Once the eggs are cooked, stir-fry them together with the rice.
Season with salt and pepper.
Transfer the finished egg fried rice to a plate.