The reintroduce directive suppresses compiler warnings about hiding previously declared virtual methods. For example,procedure DoSomething; reintroduce; // the ancestor class also has a DoSomething methodUse reintroduce when you want to hide an inherited virtual method with a new one.在隐藏先前的虚拟方法时防止编译器给出警告。例如,procedure DoSomething; reintroduce; //父类中已经有了一个DoSomething方法在想要用新的方法隐藏继承的虚拟方法时,可以使用reintroduce。
TMyBase=Class
procedure Test;
end;
TMySome=Class(TMyBase)
procedure Test;reintroduce; //
end;