Is it possible to establish default values for inherited fields in subclasses?
- by Christian Mann
I'm trying to establish a default value for inherited fields from superclasses.
So, my class hierarchy is thus:
Character - Enemy - Boss
\
- Hero
Each Character has a public static char avatar to represent him on an ASCII playing field.
How do I set a default value for the avatar of each class inherited from Character?
Thank you!