-
3. A Shape interface design, interfaces include : Draw and Resize. Some specific...
3. 设计一个接口Shape,接口中包含方法:Draw和Resize。定义一些具体类,如:Point、Line、Circle、Rectangle等,每个类都实现接口Shape。Draw方法绘制图形,Resize方法改变图形大小。用Java实现这些接口和类,并用测试类测试它们。 注意:不需要真正绘制图形,如Line的Draw方法只需输出下面文本即可: “直线的起点是(x1,y1,),终点是(x2,y2)”-3. A Shape interface design, interfaces include : Draw and Resize. Some specific type definition, such as : Point, Line, Circle, Rectangle, each category are achieving Shape interface. Draw method of drawing, graphics Resize changed size. Using Java to achieve these interfaces and class, and use tests such testing. Note : no real drawing, such as the Draw Line method, only the following text can be output : "line is the starting point (x1, y1), and the ultimate goal is to (x2, y2)"
- 2022-01-25 15:17:52下载
- 积分:1
-
运用ArrayList来实现数据的出栈、入栈功能
查看栈当前长度
运用ArrayList来实现数据的出栈、入栈功能
查看栈当前长度-Mystack
- 2022-01-24 18:02:23下载
- 积分:1
-
这是一个简单的例子,演示了如何使用JSF初学者
this a simple example that demonstrate how to use JSF for starters-this is a simple example that demonstrate how to use JSF for starters
- 2022-08-05 09:36:21下载
- 积分:1
-
用java开发的日历,包含闰年闰月等。采用swt的控件,没有使用swtdesigner等可视化开发工具。...
用java开发的日历,包含闰年闰月等。采用swt的控件,没有使用swtdesigner等可视化开发工具。-Using java to develop the calendar, including leap year, etc. Leap. Swt using the controls, did not use swtdesigner development tools such as visualization.
- 2022-11-11 09:35:04下载
- 积分:1
-
图书馆系统_毕业设计数据库是acce
图书馆系统_毕业设计数据库是acce-_ Graduate library system design database is acce
- 2022-04-15 09:29:22下载
- 积分:1
-
square array
cool stuff
check it out
square array
cool stuff
check it out-square array cool stuff check it out
- 2022-12-04 01:15:02下载
- 积分:1
-
exsample应用用于演示如何在struts应用中处理异常
exsample应用用于演示如何在struts应用中处理异常-exsample application for a demonstration of how the struts abnormal processing applications
- 2022-07-12 20:23:20下载
- 积分:1
-
彩色画图painter
彩色画图painter-Paint color painter
- 2022-07-09 17:38:35下载
- 积分:1
-
agents used search tool
用来搜索代理的工具-agents used search tool
- 2022-06-16 04:16:22下载
- 积分:1
-
用JAVA做的一个简单的BBS系统,是学JAVA的时候做的,仅供参考...
用JAVA做的一个简单的BBS系统,是学JAVA的时候做的,仅供参考-with JAVA do a simple BBS system, the JAVA study done for reference purposes only
- 2023-06-18 16:50:03下载
- 积分:1