-
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
-
student_dorm
实现简单的学生成绩管理、包括成绩录入、排名、导出不合格成绩等(Realize simple student achievement management, including record entry, ranking, export of unqualified grades, etc.)
- 2019-05-22 21:54:16下载
- 积分:1
-
wuziqi
java实现控制台五子棋,人以x,y的方式输入,电脑随机下棋。(java realize console backgammon, people with x, y way input, computer random chess.)
- 2015-06-19 07:09:47下载
- 积分:1
-
The-Java2-practical-tutorial
Java2实用教程,适合所有以Java方向开发的朋友们使用。(The Java2 practical tutorial)
- 2013-04-15 11:47:05下载
- 积分:1
-
文本替换专家 v5.1
替换删除网页文本无用代码,自动搜索寻找。(Replacement of useless code for deleting web page text)
- 2020-06-21 23:00:02下载
- 积分:1
-
nps1
这是一个java web的mvc模式开发的新闻发布系统。非常适用。(this is a java web program.it s very useful.)
- 2015-01-02 13:09:54下载
- 积分:1
-
ImportNode
The "importNode(importedNode,deep)" method for a Document should import the given importedNode into that Document.
- 2013-11-19 09:59:24下载
- 积分:1
-
hotel
andriod studio/eclipse 酒店的管理系统,刷卡监控等( andriod studio/eclipse Hotel management system, monitoring and other credit card)
- 2015-11-12 09:36:11下载
- 积分:1
-
javacaishuzi
用java编写的猜数字的小程序 很简单的 东西 还有贪吃蛇(with java prepared by the ringing of a small procedure very simple things have a huge memory)
- 2007-06-26 13:18:45下载
- 积分:1
-
DTMException
This class specifies an exceptional condition that occured in the DTM module.
- 2013-11-19 10:06:22下载
- 积分:1