Yes, Delphi 4 才支援。method & procedure/function 皆可,
不過比起 C++/Java 等麻煩, 要自行在後面加上 overload directive.
overload virtual method 時要再另加 reintroduce directive,
詳情請 man on-line help. For example:
function Divide(X, Y: Real): Real; overload;
begin
Result := X/Y;
end;
function Divide(X, Y: Integer): Integer; overload;
begin
Result := X div Y;
end;
--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: a-189.RAS.NCTU.edu.tw