logo

Crowdly

Browser

Add to Chrome

A junior developer is programming a combat system for an RPG. They decide to man...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

A junior developer is programming a combat system for an RPG. They decide to manage player status effects using standard String variables, writing code like player.inflictStatus("Burned"); and checking it later with if (status.equals("burned")). According to the "Pre-class activities: enumeration" reading, what is the primary architectural danger of this approach, and how does a Java enum resolve it?

0%
0%
0%
0%
100%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome