Yes. You already do this naturally when overriding toString()
from Object
.
You cannot override:
- Anything marked
final
- Anything
static
- Anything
private
You also cannot reduce the visibility of an overridden method; that is, you can't override a public
method into a protected
one.