-
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
-
HttpResponseWriter
Utility class to look up carrier logo resource IDs.
- 2013-12-02 13:39:21下载
- 积分:1
-
HttpResponseWriter
Utility class to look up carrier logo resource IDs.
- 2013-12-02 13:39:21下载
- 积分:1
-
一个用jsp写的聊天室
一个用jsp写的聊天室(jsp write with a chat room)
- 2004-12-22 22:10:07下载
- 积分:1
-
ppt
这是一个用来用手机操控电脑上的ppt的一个源码,挺有意思的,可以用来做参考(thiao this is a android ffio fjdiofj
fjia ofji afjifjidjifiroagjiorajpo)
- 2015-05-05 15:41:18下载
- 积分:1
-
telnet_service
这是一个简单的telnet协议简单实现,希望对大家有帮助。(telnet service,telnet service
telnet service)
- 2009-09-26 12:25:06下载
- 积分:1
-
ShortButtons
A series of short buttons, some of which are embedded within another layout.
- 2014-02-19 10:31:07下载
- 积分:1
-
gaofangweixin.zhujiemian
高仿微信主界面并且附有发送消息,对于JavaME学习有很大帮助(High imitation micro-channel with the main interface and send a message of great help for learning JavaME)
- 2014-06-17 11:27:58下载
- 积分:1
-
myeclipse0102
亮剑java项目开发实例导航01 02源代码亮剑java项目开发实例导航01 02源代码(Strong-arm reaction Java project development instance navigation 01, 02 source two project source code contains a , you can run)
- 2015-04-07 08:54:10下载
- 积分:1
-
LocalVariableExtractor
Code to figure out which local variables are active at which points in a method.
- 2013-11-04 09:33:44下载
- 积分:1