-
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
-
飞机大战jar包
说明: 想学习java的朋友们可以自行下载了解一下(If you want to learn java, you can download it for yourself.)
- 2020-06-21 22:20:02下载
- 积分:1
-
apache-ant-1.9.14-bin
说明: apache官网正版ant安装包,版本为1.9.14。(apache package ,orgin from apache organization.)
- 2020-05-27 21:40:39下载
- 积分:1
-
Calculator
Caculator is veri good which is helpful.eds
- 2014-12-14 21:04:44下载
- 积分:1
-
MatlabWeb
java 调用 matlab生成的jar文件实现两个数相加(jar file generated by the java call matlab sum of two numbers)
- 2012-08-15 13:27:04下载
- 积分:1
-
emp
说明: 雇员java学习题目,大学java初学者实验(Employee java learning topics)
- 2019-07-04 22:27:47下载
- 积分:1
-
Programmer-en-Java
cours to programme by using java
- 2014-02-19 12:06:06下载
- 积分:1
-
textsplittextnomodificationallowederrEE
Create an ent3 reference and execute the "splitText(offset)" method.
- 2013-10-30 21:53:50下载
- 积分:1
-
PrincipalCurves-Java
Java实现主曲线的生成过程,使用多项式线性算法。(Java implementation of the master curve generation process, using a linear polynomial algorithm.)
- 2020-11-16 10:19:41下载
- 积分:1
-
test
主要是用注解 将struts2 spring hibernate弄到一起(Is mainly used notes to get together struts2 spring hibernate)
- 2010-05-21 16:36:08下载
- 积分:1