登录
首页 » 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 252
下载积分: 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 个回复

  • Is a multi
    是一个多线程下载工具,很小巧,很方便,适合小量资源下载-Is a multi-threaded downloading tool, is very small, very convenient and suitable for a small amount of resources to download
    2023-02-03 22:15:03下载
    积分:1
  • 聊天程序的Server
    聊天程序的Server-Chat Server procedures
    2023-09-08 19:25:03下载
    积分:1
  • 《Practical Java》中文版随书源码
    《Practical Java》中文版随书源码-" Practical Java" with the Chinese version of the book source code
    2022-07-26 23:10:13下载
    积分:1
  • Java 2入门经典:JDK 5 SOLUTION 这本书综合介绍了使用J2SE(Java 2 Standard Edition)5.0或更高版本开发动态程...
    Java 2入门经典:JDK 5 SOLUTION 这本书综合介绍了使用J2SE(Java 2 Standard Edition)5.0或更高版本开发动态程序的过程,阐述了Java语言的各个方面,包括Java语言结构和工作原理的基本知识,用大量的实例讲述如何开发功能齐全的Java应用程序,以期帮助读者掌握Java语言的最新特性和Java类库中主要的功能包,积累Java应用环境的使用经验,并在核心技术领域打下坚实的基础。. 本书系统全面、浅显易懂,非常适合没有任何编程经验的初学者阅读,也可作为软件开发人员和高校师生的必备参考书。 通过阅读本书,你可以借助J2SE 5.0这个最新、最出色的Java平台来学习Java编程。J2SE 5.0拥有强大的新特性和新功能,使Java性能产生了巨大的飞跃。 -Java 2 portal classic : JDK 5 SOLUTION this book on the integrated use of J2SE (Java 2 Standard Edition) version 5.0 or higher dynamic program development process. expounded the Java language in all its aspects, including the Java language"s structure and working principle of the basic knowledge, with plenty of examples on how to develop fully functional Java applications, to help readers master the latest Java language features and Java class library major functional package, Java application environment accumulation of experience and core technology in the field to lay a solid foundation. . The book system of comprehensive, sim
    2022-11-18 10:05:03下载
    积分:1
  • JAVA五子棋
    JAVA五子棋 -JAVA Gobang Gobang
    2023-03-16 15:30:03下载
    积分:1
  • 一个简单的日历代码,可以查询到1~5000年间的日历,
    一个简单的日历代码,可以查询到1~5000年间的日历,-A simple calendar code
    2022-07-14 05:06:43下载
    积分:1
  • java做的音乐播放器
    java做的音乐播放器-do music player
    2022-01-30 16:55:05下载
    积分:1
  • 一个简单ssh+extjs的人力资源管理系统(转载),数据库是用mysql5.0,可以直接跑起来...
    一个简单ssh+extjs的人力资源管理系统(转载),数据库是用mysql5.0,可以直接跑起来-Ssh+ extjs a simple human resources management system (reproduced), the database is mysql5.0, can run up
    2022-01-21 20:05:31下载
    积分:1
  • JAVA下简单操作数据库的经典例子,一些简单的数据库操作方法
    JAVA下简单操作数据库的经典例子,一些简单的数据库操作方法-JAVA database under the simple classic example of some simple methods of database operations
    2022-07-18 05:34:44下载
    积分:1
  • 一个用JAVA做的计算器
    一个用JAVA做的计算器-use a calculator to do JAVA
    2022-02-20 09:05:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载