// Write an enum of Feeling
enum Feeling {
HAPPY, SAD, WORRY
}
class Abcdefg {
private double money;
// How to create method below?
public Feeling feel() {
if (money > 100) return Feeling.HAPPY;
if (money == 100) return Feeling.WORRY;
if (money < 100) return Feeling.SAD;
return null;
}
}