登录
首页 » Java » Mypicture

Mypicture

于 2021-04-14 发布 文件大小:13KB
0 180
下载积分: 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.)

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

发表评论

0 个回复

  • 我只写了前4个,这个是别人的序,我觉得写的很好,就传了上来,是FTP扫描的工具,扫描别人21端口,试能否匿名连接...
    我只写了前4个,这个是别人的程序,我觉得写的很好,就传了上来,是FTP扫描的工具,扫描别人21端口,试能否匿名连接-I just write the first four, the other is the process, I think was a very good on-the ranks of the FTP scanning tools, scanning port 21 others, whether anonymous connections trial
    2022-06-13 11:25:11下载
    积分:1
  • jspservletjavaBean
    jsp+servlet+usebean 实现MVC(jsp+ servlet+ usebean achieve MVC)
    2010-05-13 11:11:37下载
    积分:1
  • 很好……你可以学到更多的东西…
    两线程同时监控服务器的两个端口,从其中一个端口接收到得数据都会通过另一端口转发给另一客户端。-It s very good...you can learn much more...
    2023-04-09 10:50:04下载
    积分:1
  • mschart
    说明:  MSchart控件用法源码:生成柱状图、曲线图、饼图数据图表(MSchart control usage source code: generate histogram, curve, pie chart data chart)
    2020-05-19 14:23:58下载
    积分:1
  • ISAPI 实现 web图形,关于DCS系统实时数据展示的。这是一个基本工,但是涉及到从DCS中获取数据,代码相对少些,对于理解通过ISAPI实现jpeg图形...
    ISAPI 实现 web图形,关于DCS系统实时数据展示的。这是一个基本工程,但是涉及到从DCS中获取数据,代码相对少些,对于理解通过ISAPI实现jpeg图形有些帮助。-ISAPI make a web image(JPEG),It s a simple example.
    2022-03-21 00:09:28下载
    积分:1
  • PE_Explorer_ha
    PE Explorer(pexplorer)是功能强悍的软件汉化工具,也是大家常用的反编译工具,能可视化翻遍Delphi、C++ 、VB等语言编写的程序,另外,还具备有W32DASM 软件的反编译能力和PEditor 软件的 PE 文件头编辑功能,可以更容易的分析源代码,修复损坏了的资源,还能任意修改程序内置的资源、信息,可以处理的文件格式包括EXE、DLL、DRV、BPL、DPL、SYS、CPL、OCX、SCR 等32位可执行程序。PE Explorer V1.99 R6 汉化版在该工具中附加了UPX脱壳插件。(PE Explorer (pexplorer) is a function powerful software localization tool, is also commonly used anti compiler tool, can turn over Delphi, C++, visual VB language program, in addition, also has a PE file with W32DASM software decompile capacity and PEditor software editing function, can be the source code analysis easier., repair damaged resources, can modify the program built-in resources, information, can handle file formats including EXE, DLL, DRV, BPL, DPL, SYS, CPL, OCX, SCR, 32 bit executable program. PE Explorer V1.99 R6 Chinese version attached to UPX hulling plug-ins in the tool.)
    2014-02-19 20:16:51下载
    积分:1
  • ICFFCM
    说明:  APPLICATION OF ICFFCM segmentation image
    2019-03-17 20:11:49下载
    积分:1
  • 局域网内利用messenger服务发送消息
    局域网内利用messenger服务发送消息-LAN messenger service send a message to use
    2022-01-30 14:24:32下载
    积分:1
  • Hai2u
    HAI2U, a maplestory bot coded in win32 c++ visual studio. It contains botting functions, kami and etc
    2013-05-20 18:27:11下载
    积分:1
  • new
    基于udp协议的局域网内聊天的设计与开发源代码(The UDP protocol LAN chat is designed and developed based on the source code)
    2013-12-01 12:04:45下载
    积分:1
  • 696518资源总数
  • 104347会员总数
  • 12今日下载