L
linuxping
Unregistered / Unconfirmed
GUEST, unregistred user!
为了得到本机的IP地址,我只要引用IdStack单元,然后使用
uses IdStack;
var IP:String;
begin
IP:=Gstack.LocalAddress;//Gstack是IdStack单元中预定义的TIdstack类型;
end;
然后我到Idstack单元查看它是怎样具体得到本机IP地址的代码,发现:
TIdStack = class
protected
FLocalAddress: string;
....
.....
function WSGetLocalAddress: string; virtual; abstract;
.....
.....
.....
public
.....
.....
.....
property LocalAddress: string read WSGetLocalAddress;
end;
var
GStack: TIdStack = nil;
我想问的是WSGetLocalAddress函数是抽象函数,WSGetLocalAddress在哪里被覆盖了?我一直都没有找到...没有一个类从它继承而来...?????
uses IdStack;
var IP:String;
begin
IP:=Gstack.LocalAddress;//Gstack是IdStack单元中预定义的TIdstack类型;
end;
然后我到Idstack单元查看它是怎样具体得到本机IP地址的代码,发现:
TIdStack = class
protected
FLocalAddress: string;
....
.....
function WSGetLocalAddress: string; virtual; abstract;
.....
.....
.....
public
.....
.....
.....
property LocalAddress: string read WSGetLocalAddress;
end;
var
GStack: TIdStack = nil;
我想问的是WSGetLocalAddress函数是抽象函数,WSGetLocalAddress在哪里被覆盖了?我一直都没有找到...没有一个类从它继承而来...?????