csgashine

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
1.Defining Interface
The symtax of defining an Interface is as follows:
[attributes] [access-modifier] interface interface-name [:base list]
{interface body}

What about the Attributes????

Acess modifier include public,private,protected,interal and protected interal.
The interface keyword is followed by the name of the interface. It's common (but not required)  to begin the name of your interface with capital I(thus, IStorable, ICloneable, IClaudius, etc.).

The base-list lists the interfaces that this interface extends.

The interface-body describes the methods, properties, and so forth that must be implemented bye the implementing class.
posted on 2006-01-24 22:41  asp-shine  阅读(237)  评论(0编辑  收藏  举报