- #1
Robben
- 166
- 2
Homework Statement
Suppose I have an enum class named Faction and one of the constants is named DAUNT. I created a Daunt class of the enum but how can I pass in a DAUNT faction type in for Daunt?
Homework Equations
None
The Attempt at a Solution
Code:
public enum Faction {
ALMIGHTY, AMBITION, DAUNT, RESTLESS, CAN;
}
public class Daunt {
public Daunt() {
}
}