Final Methods

When declaration of an instance method contains the Final modifier, this method is named final. Declaration of a final method must also include the Override modifier. Use of the Final modifier prevents a derived class from further overriding the method.

Example

Class A
    Public Virtual Sub Test();
    Begin
        
    End Sub;
End Class;

Class B: A
    Public Final Override Sub Test();
    Begin
        
    End Sub;
End Class;

Class C: B
    //Compile error will occur when describing this method
    //as the method is sealed in source class B
    Public Override Sub Test();
    Begin
        
    End Sub;
End Class C;

See also:

Methods