社区
Delphi
帖子详情
在interface和implementation中Uses的应用???
Lxborland
2002-12-10 11:42:49
在interface和implementation中Uses有什么不同?
我认为:要在interface中继承或使用的单元,在interface中加,
否则,加在interface和implementation中都可以。不知对否?
请指教?
...全文
108
回复
打赏
收藏
在interface和implementation中Uses的应用???
在interface和implementation中Uses有什么不同? 我认为:要在interface中继承或使用的单元,在interface中加, 否则,加在interface和implementation中都可以。不知对否? 请指教?
复制链接
扫一扫
分享
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Interface
与
Implementation
区别
(1)单元名单元的名称应当有描述性。例如,
应用
程序的主窗体单元叫MaimFrm.pas。(2)
Uses
句子
Interface
部分的
Uses
子句应当只包含该部分需要的单元。不要包含可能由Delphi自动添加的单元名。
Implementation
部分的
Uses
子句应当只包含该部分需要的单元,不要有多余的单元。(3)
Interface
部分
Interface
部分应当只包含需要被外部单元访问的类型、变量、过
delphi
中
uses
单元引入的区别
uses
单元引入分为在
interface
下如:
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; 和在
implementation
下
implementation
uses
clamsend;这两个有什么区别呢?
Delphi
中
uses
在interfeace和
implementation
中
的区别
use单元引入分为在
interface
中
引入,如
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; 和在
implementation
,如
implementation
uses
clamse...
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
java+
interface
+abstract_转:总结java的
interface
和abstract class
先说说
interface
和abstract method语法
中
需要注意的地方。
Interface
:1. An
interface
can contain fields, but these are implicitly static and final.2. You can choose to explicitly declare the methods in an
interface
as pu...
Delphi
5,943
社区成员
262,941
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章