新足迹

 找回密码
 注册

精华好帖回顾

· 衣衣,鞋鞋照片!!! (2005-5-14) 短腿小鳄鱼 · @广式月饼@新鲜出炉~奶香绿豆月饼 (2007-9-11) 紫雪花
· 我在悉尼4个月 (2005-7-12) 大玉儿 · 难忘一刻征文:亲爱的小孩 (2005-1-24) sail
Advertisement
Advertisement
查看: 1240|回复: 5

分享面试题, 有请java高手 [复制链接]

发表于 2006-9-28 17:46 |显示全部楼层
此文章由 a711012 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 a711012 所有!转贴必须注明作者、出处和本声明,并保持内容完整
请看一下

Shapes
A mathematical application has the following requirements:
1.        The application must be able to define the following shapes:
-        Square
-        Rectangle
-        Circle
-        RightAngleTriangle
2.        Each shape is to be defined using the minimum number of measurements necessary according to the size and type of shape.
3.        All measurements shall be expressed in centimetres.
4.        For each shape the application must be able to answer the following information:
-        the area of the shape
-        the total distance around the edge(s) of the shape
-        the number of sides the shape has
-        other attributes that are applicable depending on the type of shape (e.g. a Circle has a diameter)

Design and implement the classes necessary to support this application.


就是考java基本的class设计, 唯一不明白的是"All measurements shall be expressed in centimetres."

什么意思啊? 又不是日期类型, 要特别的检查?
努力工作, 享受Mel的生活
Advertisement
Advertisement

发表于 2006-9-28 17:52 |显示全部楼层
此文章由 yeerfrid 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 yeerfrid 所有!转贴必须注明作者、出处和本声明,并保持内容完整
应该是所有单位用厘米的意思。

发表于 2006-9-28 18:07 |显示全部楼层
此文章由 a711012 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 a711012 所有!转贴必须注明作者、出处和本声明,并保持内容完整
看英文的意思是这个, 但好像另有深意, 如何在java里面体现?

发表于 2006-9-28 20:11 |显示全部楼层
此文章由 a711012 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 a711012 所有!转贴必须注明作者、出处和本声明,并保持内容完整
有人懂吗

发表于 2006-9-28 20:45 |显示全部楼层
此文章由 freeau 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 freeau 所有!转贴必须注明作者、出处和本声明,并保持内容完整
是指Square,Rectangle等形状的尺寸用厘米表示吧。
头像被屏蔽

禁止发言

发表于 2006-9-28 22:11 |显示全部楼层
此文章由 armwe 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 armwe 所有!转贴必须注明作者、出处和本声明,并保持内容完整
对啊,就是尺寸用厘米表示,没有什么深意
Advertisement
Advertisement

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部