-
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
-
MyWeatherActitity
根据中国天气网,查询城市天气。根据城市编号添加城市,也可根据城市名称查询城市编号(According to Chinese weather site, check the city weather. According to City Code to add the city, can also inquire about the city numbered according to city name)
- 2014-05-02 19:28:54下载
- 积分:1
-
FileManager
JAVA写的文件管理,eclipse项目源文件及可运行的jar文件(file manager)
- 2009-11-17 16:08:32下载
- 积分:1
-
Homework07
创建一个类,提供与java .lang.Math同名的所有方法,但每个方法均按度数而非弧度进行运算。具体要求是:在自己编写的类中,对Math类中的每一个方法加一层包装。(Create a class that provides all methods with the same name as java. lang. Math, but each method operates in degrees rather than radians. Specific requirements are: in their own class, each method in the Math class with a layer of packaging.)
- 2020-12-07 21:59:20下载
- 积分:1
-
an35n
Monteboard an35n - Poza placa de baza
- 2014-05-06 02:31:39下载
- 积分:1
-
AccountSetupOptionsTests
Tests of basic UI logic in the AccountSetupOptions screen for Andriod.
- 2013-10-06 00:29:52下载
- 积分:1
-
ID3
ID3 is data classification algorithm.it is used to generate decision tree from given data set.decision is used to make strategic decision from generated decision tree.
- 2011-09-08 16:58:32下载
- 积分:1
-
spring-demo
spring demo as spring boot
- 2020-06-25 14:40:02下载
- 积分:1
-
javaInterance
java接口方面的,感兴趣的朋友可以下载下来看看(java interface, interested friends can download them to see)
- 2012-12-03 15:19:22下载
- 积分:1
-
avatar
这是一个上传头像的源代码 可以实现电脑的拍照功能 保存成一大一小照片 可以根据自己的需求开发(This is a picture to upload the source code can be saved as a computer' s camera and a small photo can develop according to their needs)
- 2015-02-02 15:08:25下载
- 积分:1