Can a rooster hatch chickens? What is the principle?

Of course you can.

Generally, a cock is called a castrated cock. When the capon grows up, he will give it a glass of wine, let it hatch eggs with the chicken, and then put it in a chicken nest full of eggs. When he woke up, he thought he had laid a nest of eggs, so he hatched them and brought chickens when they hatched.

This method is still used in my hometown when I was a child, and it has a long history.