Error: Cannot change final {kind} ‘{name}’ of {cls}
The class redeclares a method, property or class parameter that a superclass declares
[ Final ]. IRIS refuses to compile the class (ERROR #5272). Remove the redeclaration, or
drop Final from the superclass’s member.
IRIS rejects the example.
Class Demo.Account Extends %RegisteredObject
{
Method Balance() As %Integer [ Final ]
{
Quit 0
}
}
Class Demo.Savings Extends Demo.Account
{
Method Balance() As %Integer //! A5272
{
Quit 1
}
}