-
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
-
JAVA 实现短信发送程序,调用短信发送网关
JAVA 实现短信发送程序,调用短信发送网关-java realiize message send program
- 2022-02-28 14:15:26下载
- 积分:1
-
Ray dug java version of the game program to imitate Windows easy
java 版的挖雷程序 模仿Windows的游戏程序 简单易用-Ray dug java version of the game program to imitate Windows easy-to-use procedures
- 2022-08-16 21:04:30下载
- 积分:1
-
jxta中的server,具有基本功能
jxta中的server,具有基本功能-jxta server, has the basic function
- 2022-05-09 15:04:00下载
- 积分:1
-
实现在网页上控制串口,进行打印.
用javaScript编程
实现在网页上控制串口,进行打印.
用javaScript编程
-Realize serial control on the page, to print. Use JavaScript programming
- 2022-05-31 23:43:37下载
- 积分:1
-
RSA加密算法简单实现,主要包括字符的加密,不能处理汉字
RSA加密算法简单实现,主要包括字符的加密,不能处理汉字-RSA encryption algorithm is simple to achieve, the main characters, including encryption, should not deal with Chinese characters
- 2023-01-11 02:35:04下载
- 积分:1
-
Java Threads, 2Ed (Source)
Java Threads, 2Ed (Source)-Java Threads, 2Ed (Source)
- 2022-01-31 13:08:20下载
- 积分:1
-
带聊天功能的java画图程序,画图为同步的(当多人联机时),可以同时聊天....
带聊天功能的java画图程序,画图为同步的(当多人联机时),可以同时聊天.-a painting program which you can chat while you are painting. And the painting is sychronized.
- 2022-09-29 20:30:05下载
- 积分:1
-
javascript source code part1
javascript source code part1
- 2022-08-13 16:22:30下载
- 积分:1
-
使用微软的J#语言开发的把java源代码自动写的到文档中,可用于验收文档的源代码自动读取。...
使用微软的J#语言开发的把java源代码自动写的到文档中,可用于验收文档的源代码自动读取。-The use of Microsoft
- 2022-01-24 13:20:19下载
- 积分:1