private

来源:互联网 发布:搭建域名服务器 编辑:程序博客网 时间:2024/04/27 23:47
private  { Private declarations }public       function divisor(x,y:integer):integer;{声明为类的一个函数,在(1)处用类的对象来调用实现;}end;{ function divisor(x,y:integer):integer; 如果在此声明函数,应该在(2)处这样来实现;}implementationfunction TForm1.divisor(x,y:integer):integer;        //(1)处;{function divisor(x,y:integer):integer;      (2)处;}

 
原创粉丝点击