当前位置: 代码迷 >> J# >> 哪位高手能一个标准的样板瞅瞅
  详细解决方案

哪位高手能一个标准的样板瞅瞅

热度:7007   发布时间:2013-02-25 00:00:00.0
谁能一个标准的样板瞅瞅?
小弟开始从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程序.
谢谢~~~:)
 

------最佳解决方案--------------------------------------------------------
ms-help://MS.MSDNQTR.2003FEB.2052/cpgenref/html/cpconnamingguidelines.htm
------其他解决方案--------------------------------------------------------
多看.NET的書.
------其他解决方案--------------------------------------------------------
谁能给一个具体实现看看:)
------其他解决方案--------------------------------------------------------
要求VB,NET写
  相关解决方案