-
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
-
test
just for test and pls delete it.May upload some useful doc. later. Ta!
- 2009-11-03 08:22:46下载
- 积分:1
-
j203ava
说明: java界面设计,适合初学者!欢迎下载,大家交流学习。(java interface design, suitable for beginners! Welcome to download, the exchange of learning.)
- 2006-02-27 19:54:28下载
- 积分:1
-
ET
说明: 在java智能卡上实现电子票据业务功能,比如读写,删除 ,修改等待。(Java smart cards in electronic instruments to achieve business functions such as read, delete, modify, wait.)
- 2011-09-01 14:23:37下载
- 积分:1
-
pazu
好用的web打印插件,适用于小型项目开发,简单方便(Useful web print plug-in, suitable for small-scale project development, simple and convenient)
- 2019-01-15 16:11:34下载
- 积分:1
-
23-kinds-of-Java-design-patterns
23中Java设计模式 很详细地介绍了Java的23种设计模式 适合初学者(23 kinds of Java design patterns Very detailed introduces the 23 kinds of Java design patterns For beginners)
- 2015-11-28 17:06:41下载
- 积分:1
-
clone()方法示例(对象克隆)
说明: clone()方法示例(对象克隆)。作者: 初生不惑(Sample clone () method (object clone). Author: new born)
- 2020-05-30 01:11:08下载
- 积分:1
-
_Bits
Test the class {@code com.android.dx.util.Bits} for Java.
- 2013-10-02 01:36:01下载
- 积分:1
-
swing-inspector-1.2.1
网络浏览器,java编写,swing做的界面,可以实现基本的上网。(Web browser, java prepared, swing interface, you can access the basic implementation.)
- 2013-12-12 17:02:04下载
- 积分:1
-
MMS-master
说明: 医院管理系统hospital management system(hospital management system)
- 2019-04-02 15:08:21下载
- 积分:1