社区
Delphi
帖子详情
在interface和implementation中Uses的应用???
Lxborland
2002-12-10 11:42:49
在interface和implementation中Uses有什么不同?
我认为:要在interface中继承或使用的单元,在interface中加,
否则,加在interface和implementation中都可以。不知对否?
请指教?
...全文
68
回复
打赏
收藏
在interface和implementation中Uses的应用???
在interface和implementation中Uses有什么不同? 我认为:要在interface中继承或使用的单元,在interface中加, 否则,加在interface和implementation中都可以。不知对否? 请指教?
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Delphi
中
uses
在interfeace和
implementation
中
的区别
use单元引入分为在
interface
中
引入,如
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ...和在
implementation
,如
implementation
uses
clamse...
Interface
与
Implementation
区别
(1)单元名单元的名称应当有描述性。...
Implementation
部分的
Uses
子句应当只包含该部分需要的单元,不要有多余的单元。(3)
Interface
部分
Interface
部分应当只包含需要被外部单元访问的类型、变量、过
Delphi
Interface
,
implementation
,
uses
and other keywords explained in easy language!
The UNIT keywordA unit file begins with a unit heading, which is followed by the
interface
,
implementation
, initialization, and finalization sections. Theinitialization and finalization sections
Delphi
中
Interface
接口的使用方法
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, ...type //定义接口如果接口独立成一个文件,则在
应用
程序
中
和实现程序
中
都要引用该接口文件; ICar = interfa
Delphi
中
的引用 (2008-07-25 11:04:32)
Delphi
中
的引用 (2008-07-25 11:04:32) 转载▼ ... 在Delphi
中
,使用
uses
语句来引用其他单元,分别在两个地方可以使用...1.在
interface
部分,使用
uses
,是公有引用,本单元
中
在
interface
和
implementation
中
Delphi
5,927
社区成员
262,932
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章