Reintroducing functions in Delphi
问题 What was the motivation for having the reintroduce keyword in Delphi? If you have a child class that contains a function with the same name as a virtual function in the parent class and it is not declared with the override modifier then it is a compile error. Adding the reintroduce modifier in such situations fixes the error, but I have never grasped the reasoning for the compile error. 回答1: If you declare a method in a descendant class that has the same name as a method in an ancestor class