Wrap the tofu with a paper towel to remove moisture, then cut into bite-sized pieces.
Crack the eggs into a bowl and whisk well.
Heat cooking oil in a pan over medium heat.
Add tofu to the pan and stir-fry until golden brown.
Pour the beaten eggs over the tofu and quickly stir-fry to mix.
Season with salt and black pepper.
Transfer the finished stir-fried tofu and eggs to a plate.