Originale-mail to me for new edition

 

Reintroduce

 

The reintroduce directive suppresses compiler warnings about hiding previously declared virtual methods. For example,

procedure DoSomething; reintroduce;  // the ancestor class also has a DoSomething method

Use reintroduce when you want to hide an inherited virtual method with a new one.

 

Topic groups

 

See also

Method binding: Overview

Overloading methods

Overriding versus hiding

Virtual and dynamic methods

 

 

译文

 

再引入(Reintroduce

 

再引入指示字reintroduce用于防止编译器关于隐藏先前的虚拟方法给出警告。例如,

procedure DoSomething; reintroduce;  //祖先类中已经有一个DoSomething方法

想要用新的方法隐藏继承得到的虚拟方法时,可以使用reintroduce

 

主题组

 

相关主题

方法绑定:概述

重载方法

覆盖和隐藏

虚拟方法和动态方法