课程设计,都快把我搞麻了...谁能帮忙看一下...MS很简单,但就是搞不明白...

satanness 2007-12-16 12:24:26
Subject

You have to create the following classes, (see the schema bellow):
Each attribute must be private and have a getter and a setter
You have to create 2 constructors for each concrete class (Square & round) :
- A default constructor (without parameters)
- A constructor with all the attributes as parameters (the constructor changes the attribute value)

Shape is an absctact class.
Square and round inherit from person.
IMove is an interface
Square and round implements IMove

You have to use the naming convention for variables, packages, classes and method
All your methods must be commented with javadoc.
All your classes must be in a package
All your methods must print something in the console
Add the equals and hashcode method for Square

Feel free to add anything to make this program better (class with main to test your program, attributes, method, collections, javadoc, jar…)
...全文
69 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
davidzhang0821 2007-12-16
  • 打赏
  • 举报
回复
哪里搞不明白?

62,623

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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