登录
首页 » Java Develop » 3. A Shape interface design, interfaces include : Draw and Resize. Some specific...

3. A Shape interface design, interfaces include : Draw and Resize. Some specific...

于 2022-01-25 发布 文件大小:982.00 B
0 247
下载积分: 2 下载次数: 1

代码说明:

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)"

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Very simple calculator, with three one
    非常简单的计算器,用三个单行文本和一个 按钮,可以计算加法。-Very simple calculator, with three one-way text and a button, can calculate the additive.
    2022-01-25 17:18:29下载
    积分:1
  • 2023-03-12 11:50:03下载
    积分:1
  • My graduation project, JAVA implementation into a database, I used Java as a pro...
    本人的毕业设计,JAVA实现数据库转化,我用Java作为编程语言(Java的版本是6.0),JDOM作为XML解析器。数据库是SQL Server 2000,开发工具是NetBeans IDE 5.5 大家在运行程序的时候最好还是使用NetBeans IDE 5.5和Java 6.0,因为我设计的是图形界面,在设计的时候我用到了NetBeans的Swing设计工具Martisse,如果把我的程序放在JBuilder、Eclipse或JCreator中无法运行的(NetBeans是免费下载的) src就是我程序的源代码,XRSystem.SQL就是建立数据库的脚本文件,解压缩后在查询分析器中打开直接运行就可以建立好数据库,文件夹XML是几个XML文档示例-My graduation project, JAVA implementation into a database, I used Java as a programming language (Java version 6.0), JDOM as an XML parser. Database is SQL Server 2000, development tools, NetBeans IDE 5.5 U.S. are running the program at a time when it would be better to use NetBeans IDE 5.5 and Java 6.0, because my graphics are designed to interface design at a time when I used the NetBeans Design Tools Martisse of Swing If I put the procedure on JBuilder, Eclipse or JCreator can not run in the (NetBeans is a free download) src is the source code of my program, XRSystem.SQL is set up the database script file, unzip it in the Query Analyzer open a direct op
    2022-07-27 23:50:33下载
    积分:1
  • C语言精彩编程百例10
    C语言精彩编程百例10-C programming language brilliant 100 cases 10
    2022-03-09 11:49:47下载
    积分:1
  • pngencoder
    PngEncoder - convert a Java Image to PNG PngEncoderB - convert a Java BufferedImage to PNG-PngEncoder- convert a Java Image to PNG PngEncoderB- convert a Java BufferedImage to PNG
    2022-08-02 16:10:24下载
    积分:1
  • 扑克程序,四人,自动洗牌发牌,简单易懂,简洁明了
    扑克程序,四人,自动洗牌发牌,简单易懂,简洁明了-Poker program, four, automatic shuffling licensing, easy to understand, concise
    2023-02-07 10:45:04下载
    积分:1
  • 用JAVA编写的记事本,简洁实用。
    用JAVA编写的记事本,简洁实用。-prepared using JAVA notebook, simple and practical.
    2022-03-10 05:16:41下载
    积分:1
  • our project
    我们的project――贪吃蛇游戏-our project-- Snake game
    2022-02-03 05:37:18下载
    积分:1
  • 本程序包适用于客户端是WINDOWS操作平台,WEB SERVER可以为TOMCAT/WEBLOGIC等使用。能进行远程扫描,图像能保存进DB中。...
    本程序包适用于客户端是WINDOWS操作平台,WEB SERVER可以为TOMCAT/WEBLOGIC等使用。能进行远程扫描,图像能保存进DB中。-This package applies to the client is a WINDOWS platform, WEB SERVER for TOMCAT/WEBLOGIC such use. Able for remote scanning, images can be save into the DB in.
    2022-08-25 06:48:01下载
    积分:1
  • 阿房投票问卷管理系统 1)管理员登陆帐号和密码都是admin。 2)数据库连接方式是使用JDBC For SQL Server驱动。用户使用时要修改openda...
    阿房投票问卷管理系统 1)管理员登陆帐号和密码都是admin。 2)数据库连接方式是使用JDBC For SQL Server驱动。用户使用时要修改opendata.jsp文件,修改SQL Server登陆用户名和密码。 3)目前的数据库连接、访问、修改都是通过页面完成,效率不是太高,在新版本中将使用JavaBeans实现。 4)新版本将添加如下功能:管理员权限设置、投票主题发布可选择单选或多选、投票者留言反馈等。-Awa vote a questionnaire Management System) administrator landing account and password are admin. 2) The database connection is to use SQL Server For JDBC driver. When users opendata.jsp document to amend, modify SQL Server username and password. 3) the current database connections, access, modify through the pages are completed, efficiency is not high, the new version will use JavaBeans achieve. 4) The new version will add the following functions : administrator settings, the option to vote theme release danxuan or election, voters voice feedback.
    2022-08-07 19:38:39下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载