南水北调用水泵抽水吗:delphi中的类什么情况下使用overload
来源:百度文库 编辑:神马品牌网 时间:2024/05/21 04:46:34
在你重载的时候
当两个函数(过程)的函数(过程)名一样参数不一样时
如
procedure fun1(age,height:integer);overload; //这两个过程的名字一样
procedure fun1(name:string);overload; //但他们的参数不同。
在你重载的时候
当两个函数(过程)的函数(过程)名一样参数不一样时
如
procedure fun1(age,height:integer);overload; //这两个过程的名字一样
procedure fun1(name:string);overload; //但他们的参数不同。