-
Mypicture
定义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.)
- 2021-04-14 09:08:55下载
- 积分:1
-
voice-mouse
Voice operated mouse that can connected with java server
- 2013-08-19 12:53:43下载
- 积分:1
-
Chapter-17.-MyEclipse.-UML.-Modeling
这是关于uml,模式设计,开发应用开发的书籍,希望对大家有所帮助(This is about uml, model design, application development development of books, and I hope to help
)
- 2011-12-03 13:36:17下载
- 积分:1
-
java-cas-client-3.2.1
说明: cas系统的jar包,很哪找的。求求你让我通过吧。(I dont no yingyu i am sorry)
- 2020-06-22 10:40:02下载
- 积分:1
-
java-control-LED
java 编写的一个控制LED显示屏的工具(java control what appear on led.)
- 2014-09-03 15:56:52下载
- 积分:1
-
HuffmanCoding
多媒体类别,包含Huffman编码、lzw编码和算数编码三种,对“I have a dream”进行编码(Including Huffman Coding、lzw coding and Arithmetic coding)
- 2012-05-13 22:57:19下载
- 积分:1
-
hyperic-sigar-1.6.4
sigar1.6.4源代码用于获取系统信息 如内存CPU使用率 等(sigar1.6.4 source code used to obtain system information such as CPU utilization, memory)
- 2011-07-15 16:11:18下载
- 积分:1
-
56-policy-clime-systems
this is java aoolication project
- 2014-03-05 01:54:48下载
- 积分:1
-
array-sort
Test counter-intuitive default number sorting for Java Script.
- 2013-12-27 00:20:16下载
- 积分:1
-
CoreJava-Study-Note
Corejava学习笔记,本人上培训的时候记录老师的东西,简单整理(Corejava study notes, I was training record teacher something simple finishing)
- 2013-03-07 12:10:01下载
- 积分:1