Ada Programming/Keywords/overriding


Ada Lovelace 1838.jpg

This language feature is only available in Ada 2005.


The keyword overriding can be used to explicitly declare a procedure or function as an overriding subprogram. There are two forms available:

overriding
procedure Overriding_Procedure (This: in Class_Type);
not overriding
procedure Not_Overriding_Procedure (This: in Class_Type);

The first declares the procedure as overriding the second does not.

Last modified on 5 January 2009, at 23:42