King cobras are the only snake species that build nests for their eggs and guard them. After the eggs hatch, the mother leaves, and the hatchlings are on their own. Some hatchlings may be eaten by predators or occasionally by other cobras, but this is not 'eating their own babies' as parental behavior - it's absence of parental care and predation.