-
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
-
Localization
无线电定位算法 算法对TOA的估计,相信对大家非常有用(TOA-Based Self-localization Technology in Wireless Sensor Networks)
- 2021-05-13 19:30:02下载
- 积分:1
-
AGE-GROUP-CLASSIFICATION
In this paper age is classified indifferent groups.
- 2013-11-11 19:54:00下载
- 积分:1
-
GPS
gps软件接收机c/a码的捕获,可用于ca码的直接捕获(gps software receiver c/a code capture, ca code can be used to directly capture)
- 2013-03-22 17:22:30下载
- 积分:1
-
using socket communications program heterogeneous environments under the Data Co...
利用socket通信程序实现异构环境下的数据通信-using socket communications program heterogeneous environments under the Data Communication
- 2022-08-21 06:53:22下载
- 积分:1
-
PhManage
说明: VC++对DB-Libray封装更方便操作SQLServer数据库源码(VC ++ package of DB-Libray is more convenient to operate SQLServer database source code)
- 2020-05-13 10:26:54下载
- 积分:1
-
LTE_feedback_precoding
alculates the PMI to be used, RI feedback right now not included! by Stefan Schwarz
- 2017-10-19 03:55:02下载
- 积分:1
-
阿斯顿后即可哈科技时代卷卡式带骄傲和大家卡的很骄傲可视电话卷卡式带就 srd...
阿斯顿后即可哈科技时代卷卡式带骄傲和大家卡的很骄傲可视电话卷卡式带就 srd-asdasdasddsffxxvdsfsaffa
- 2022-08-14 18:36:57下载
- 积分:1
-
ldpc
ldpc源代码(matlab编写),也有C语言,涉及LDPC码编码解码程序。(LDPC source code (matlab prepared), there are C language, involves decoding LDPC coding procedures.)
- 2020-12-28 20:19:02下载
- 积分:1
-
ownerElement02
this is set by subclasses, but don t make it public.
- 2014-02-25 11:22:56下载
- 积分:1