-
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
-
ADF_Buttion
ADF开发时候使用过的一些页面按扭上的功能,不是很详细(When using the ADF to develop some of the page button on the function, not very detailed)
- 2007-11-12 11:19:37下载
- 积分:1
-
ne-ba-ja
net banking project g
- 2014-02-18 13:22:29下载
- 积分:1
-
OrderTickets
一个用java和jsp以及servlet编写的网上订票系统(Order Tickets)
- 2014-03-05 21:49:27下载
- 积分:1
-
ThinkPHP_3.2.1_20140214
实用性代码,可以在手机等移动设备上很好的使用,可操作性强。(Usefulness of the code can be very good for use on mobile phones and other mobile devices operable.)
- 2014-02-26 09:57:45下载
- 积分:1
-
struts-bbs
基于struts的新闻发布,适合初学者,稍作修改可以作为自己的网站(struts on the press releases, for beginners, to make some modifications as their own websites)
- 2006-06-20 23:12:59下载
- 积分:1
-
Chapter-17.-MyEclipse.-UML.-Modeling
这是关于uml,模式设计,开发应用开发的书籍,希望对大家有所帮助(This is about uml, model design, application development development of books, and I hope to help
)
- 2011-12-03 13:36:17下载
- 积分:1
-
hotelsystem
这是一个网络五子棋的小项目,也许有许多地方不足,有需要的朋友可以下载。(zhe shi wu zi qi de xiao xiang mu,you xu yao de ke yi xia zai.)
- 2011-01-29 19:21:35下载
- 积分:1
-
permission-denied-stops-watches
Tests that when Geolocation permission is denied, watches are stopped, as well as one-shots.
- 2014-02-05 16:21:24下载
- 积分:1
-
DownBDFile
诛仙降级代码,可降级1611以上最新端,熟悉java的朋友就能直接看懂(Zhu Xian downgrade code that may be downgraded more than 1611 end date, familiar friends will be able to directly read java)
- 2016-02-17 18:58:32下载
- 积分:1