Slide 18
Slide 18 text
Constant-specific method implementations
public enum Status {
OK("Succeed the process!") {
@Override
void log(String tag) { Log.d(tag, message); }
},
ERROR("Error has occurred...") {
@Override
void log(String tag) { Log.e(tag, message); }
};
// ...
abstract void log(String tag);
}