登录
首页 » Java » Mypicture

Mypicture

于 2021-04-14 发布 文件大小:13KB
0 269
下载积分: 1 下载次数: 1

代码说明:

  定义4个类,MyShape、MyLine、MyRectangle和MyOval,其中MyShape是其他三个类的父类。MyShape为抽象类,包括图形位置的四个坐标;一个无参的构造方法,将所有的坐标设置为0;一个带参的构造函数,将所有的坐标设置为相应值;每个坐标的设置和读取方法;abstract void draw(Graphics g)方法。MyLine类负责画直线,实现父类的draw方法;MyRectangle负责画矩形,实现父类的draw方法;MyOval负责画椭圆,实现父类的draw方法。编写一个应用程序,使用上面定义的类,随机选取位置和形状,绘制20个图形。(Defines four classes, MyShape, MyLine, MyRectangle and MyOval, which MyShape the other three parent class. MyShape is an abstract class, including graphics position four coordinates a no-argument constructor, all the coordinates are set to 0 a parameterized constructor, all the coordinates is set to the corresponding values each coordinate set and reading method abstract void draw (Graphics g) method. MyLine class is responsible for drawing straight lines, to achieve the draw method of the parent class MyRectangle responsible for drawing rectangles, to achieve the parent class draw method MyOval responsible painted oval, draw method to achieve the parent class. Write an application that uses the class defined above, randomly selected location and shape, draw 20 graphics.)

文件列表:

Mypicture
.........\.classpath,301,2012-10-02
.........\.project,385,2012-10-02
.........\bin
.........\...\DrawComponent.class,1507,2012-10-12
.........\...\MyJframe.class,661,2012-10-12
.........\...\MyLine.class,710,2012-10-12
.........\...\MyOval.class,716,2012-10-12
.........\...\Mypicture$1.class,648,2012-10-12
.........\...\Mypicture.class,512,2012-10-12
.........\...\MyRectangle.class,730,2012-10-12
.........\...\MyShape.class,1266,2012-10-12
.........\src
.........\...\DrawComponent.class,1009,2013-11-03
.........\...\MyJframe.class,562,2013-11-03
.........\...\MyLine.class,537,2013-11-03
.........\...\MyOval.class,543,2013-11-03
.........\...\Mypicture$1.class,536,2013-11-03
.........\...\Mypicture.class,408,2013-11-03
.........\...\Mypicture.java,3976,2012-10-03
.........\...\MyRectangle.class,552,2013-11-03
.........\...\MyShape.class,946,2013-11-03

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

发表评论

0 个回复

  • hook
    能够监视盛大千年3的网络封包,由于游戏更新,HOOK地址有所变动(Can monitor the Grand Millennium 3 network packets, as the game update, HOOK address changes.)
    2018-05-20 19:34:00下载
    积分:1
  • AutoTicheting
    用C语言写的火车自助售票系统,实现火车票务管理和用户购票(Written in C language train self-ticketing system, ticket management and user traffic tickets)
    2014-10-25 13:13:52下载
    积分:1
  • details : http :// XXX. XXX/count/base.asp show visitors a detailed record. Http...
    详情:http://XXX。XXX/计数/基本.asp向来访者出示详细记录。Http://三十、 XXX.XXX/计数/fw.asp向访客展示最近30位访客的信息,参考asp产品柜台的程序。呼叫柜台使用
    2022-02-10 05:46:26下载
    积分:1
  • 明解C语言 第3版 入门篇
    说明:  《明解C语言 第3版 入门篇》图文并茂,示例丰富,第3版从190段代码和164幅图表增加至205段代码和220幅图表,对C语言的基础知识进行了彻底剖析,内容涉及数组、函数、指针、文件操作等。对于C语言语法以及一些难以理解的概念,均以精心绘制的示意图,清晰、通俗地进行讲解。原著在日本广受欢迎,始终位于网上书店C语言著作排行榜首位。(In the third edition, 190 pieces of code and 164 charts are added to 205 pieces of code and 220 charts. The basic knowledge of C language is thoroughly analyzed, including array, function, pointer, file operation, etc. For the C language grammar and some difficult to understand concepts, are carefully drawn schematic diagram, clear, popular to explain. The original book is very popular in Japan and always ranks first in the list of C language books in online bookstores.)
    2021-04-02 12:13:50下载
    积分:1
  • TCP/IP基本知识, 含有详细介绍. 可以作为详细网络驱动的起点.
    TCP/IP基本知识, 含有详细介绍. 可以作为详细网络驱动的起点.-TCP/IP basic knowledge, which contains a detailed introduction. Can be used as a starting point for detailed network drive.
    2022-10-11 01:30:02下载
    积分:1
  • 这是一个简单的pop3客户端序模版
    这是一个简单的pop3客户端程序模版-This is a simple pop3 client template
    2023-05-01 23:25:03下载
    积分:1
  • ClientContextConfigurer
    Client Context Configurer implements ClientContext.
    2014-01-12 18:09:01下载
    积分:1
  • labwindows-CVI
    基于labwindows cvi编写的各种界面示例程序,能实现基本界面功能(Based labwindows cvi prepared by the various interface sample programs that can achieve the basic interface functions)
    2020-07-07 23:08:56下载
    积分:1
  • matlab 实现lstm的官方文档说明 LSTM
    说明:  matlab 实现lstm的官方文档说明; 数据集为官方数据集; 代码略有修改; 注:训练集和测试集一定为元胞数组(The official document of realizing LSTM by MATLAB;)
    2020-04-12 10:41:51下载
    积分:1
  • rational
    建立有理数类,实现有理数的四则预算,实现输出分数形式和小数形式。(Establish rational category, the four realize rational budget to achieve the output fractional and decimal form.)
    2014-03-27 03:46:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载