-
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
-
JAVA_WELCOME
给出了几种用java语言编写的登陆界面的例子,希望对初学者有帮助(Given several landing using java language interface examples, I hope to help beginners)
- 2014-01-08 15:26:23下载
- 积分:1
-
NSK
说明: 支持中英文一键切换,备份和还原MS数据库,客户端调用Jasper模板打印pdf(Support one-click switch between Chinese and English, backup and restore MS database, client calls Jasper template to print pdf)
- 2020-06-23 22:40:01下载
- 积分:1
-
Digester
关于JAVA Digester解析xml文件的教程。较详细描述了Digester的用法。(About JAVA Digester parse xml file tutorial. A more detailed description of the usage of Digester.)
- 2009-11-26 23:02:20下载
- 积分:1
-
java-chapter8
Java数据库系统项目开发实践源程序第8章.rar
(Java database system project development source code of practice in Chapter 8. Rar)
- 2008-07-17 11:27:40下载
- 积分:1
-
sfsfsfs
说明: 使用java,实现的简单的实现学生选课系统,附有源码和运行截图以及数据库(Using java, the simple implementation of student course selection system, with source code and running screenshots and database)
- 2019-05-04 00:41:28下载
- 积分:1
-
MiniPL
Mini PL program that check syntax declaration.
- 2009-10-22 09:08:03下载
- 积分:1
-
weixin-robot
基于java的微信机器人 可以自定义开发插件, 功能非常强大.(Microsoft Robot Based on Java)
- 2020-06-18 17:00:02下载
- 积分:1
-
DFA
DFA自动状态机的JAVa编程实现。程序调试成功/(DFA using by JAVA.)
- 2015-09-23 16:42:48下载
- 积分:1
-
exam1
ssd3 exam 1 stock WeatherApplication Weather EmployeeInformationSystem
- 2011-11-17 23:04:27下载
- 积分:1