Error: Cannot change final {kind} ‘{name}’ of {cls}
A method, property or parameter a superclass declares [ Final ], redeclared, even
unchanged: IRIS refuses to compile the subclass (ERROR #5272).
IRIS rejects the example.
Class Demo.Account Extends %RegisteredObject
{
Method Balance() As %Integer [ Final ]
{
Quit 0
}
}
IRIS rejects the example.
Class Demo.Savings Extends Demo.Account
{
Method Balance() As %Integer //! A5272
{
Quit 1
}
}