-
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
-
namednodemapsetnameditemns04
Document Builder Setting.namespace Aware.
- 2014-02-27 10:23:55下载
- 积分:1
-
GPS软件接收机(鲁郁)
说明: 本文件是《GPS全球定位接收机-原理与软件实现》(电子工业出版社,鲁郁著。)的配套源程序,希望能给学习GPS的同学带来帮助哦!(This document is "GPS global positioning receiver - principle and software implementation" (Electronic Industry Press, Lu Yu) The supporting source program, I hope to help students learn GPS Oh!)
- 2020-03-07 20:42:22下载
- 积分:1
-
java-object-oriented
java面向对象的个人学习总结,适合于初学者,关于面向对象的思想核心,以及多态,继承,接口都有总结。(java object-oriented personal learning summary, suitable for beginners, the ideological core of the object-oriented, and polymorphism, inheritance, interface has summed.)
- 2013-04-15 11:14:33下载
- 积分:1
-
BTClient
安卓上的蓝牙串口助手,包含源代码,可以和单片夹等其他的设备相连。(Bluetooth serial port on Andrews assistant, including source code, and other devices can be connected to single folders.)
- 2020-11-07 20:59:48下载
- 积分:1
-
NfcHAL_SDKv22_Setup_227122
PN512 PC机源代码库文件,读卡模式,P2P通讯模式,卡模拟模式(PN512 souce code for libarary, reader writer mode, p2p communication mode, and card simulate mode)
- 2015-08-17 14:59:08下载
- 积分:1
-
radix_sort
radix_sort 排序算法的Java实现(radix_sort)
- 2010-03-10 11:31:10下载
- 积分:1
-
2333
本文将用一系列易懂的语言和例子解释Java的网络Socket支持。(This article will use a series of easy-to-understand language and examples to explain the network Socket support Java.)
- 2009-06-19 04:14:15下载
- 积分:1
-
2101311822007117129594147838
java 开发,肯定有用哦,大家顶顶哦, (java)
- 2009-05-07 21:36:30下载
- 积分:1
-
GprsTest
开关GPRS,定时开启或者关闭,保护流量(TURN ON GPRS OR TURN OFF)
- 2012-12-16 17:47:22下载
- 积分:1