class Animal
{
abstract int maxSize(); // must be implemented by sub-class
final float maxSizeInMeters() // can't be overridden by base class
{
return maxSize() / 100.0;
}
}
class Lion: Animal
{
override int maxSize() { return 350; }
}
void main()
{
...