会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
没肉包子
博客园
|
首页
| |
新文章
|
联系
|
订阅
|
管理
2004年7月5日
My god!!属性可以变成方法!!
摘要: 今天写了段代码,实现的是经典的长方形和正方形问题。这是长方形的代码 public class Rectangle{ private long width; private long height; public long Width { set { width=value; } get ...
阅读全文
posted @ 2004-07-05 12:42 没肉包子
阅读(1925)
评论(10)
推荐(0)
编辑
公告