Design Herbivore, Carnivore, and Omnivore kingdoms
Filed under Visa
The question
Design and implement classes representing three animal kingdoms: herbivores, carnivores, and omnivores. Each kingdom shares common attributes like walking, but has different eating behaviors (carnivores eat animals, herbivores eat plants, omnivores eat both). Other attributes should output identical behaviors regardless of kingdom.
No write-up yet. Related questions below have one.
Related Visa questions
Collected from public candidate posts and coding forums. Updated Nov 2026.