谁能一个标准的样板瞅瞅?

cooleader320 2005-06-15 09:07:55
小弟开始从JAVA转向.NET,老师布置了一个作业,谁能贴一个规范的代码看看(包括Class,Interface,Comments都要规范)
问题描述:
写一个CLASS实现一个名为IStack的Interface
说明:
(1)该Interface继承了ICollection,IEnumerable,ICloneable,ISeriable等.NET FrameWork的Interface
(2)该Interface表示一个后进先出的对象的集合操作,有如下方法"
Peek:return the object at the top of the stack
Pop:remove and return the object at the top of the stack
Push:insert an object at the top of the stack
要求:
(1)写出该Interface的定义
(2)写出实现该Interface的Class
(3)you CAN NOT do the job with class:System.Collection.Stack
(4)该Interface所继承的Interface中的方法也要尽可能实现
(5)写一个测试该类的WinForm程序.
谢谢~~~:)

...全文
127 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
jxyctian 2005-06-22
  • 打赏
  • 举报
回复
多看.NET的書.
cooleader320 2005-06-21
  • 打赏
  • 举报
回复
要求VB,NET写
cooleader320 2005-06-20
  • 打赏
  • 举报
回复
谁能给一个具体实现看看:)
singlepine 2005-06-18
  • 打赏
  • 举报
回复
ms-help://MS.MSDNQTR.2003FEB.2052/cpgenref/html/cpconnamingguidelines.htm

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧