-
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
-
PendingIntentRecord
Pending Intent Record extends I Intent Sender. Stub Source Code for Andriod.
- 2013-12-16 12:35:39下载
- 积分:1
-
ATM-Example
使用java编写的模拟atm的代码,多线程操作,实现了存取查询功能(Atm using the java code written in simulation, multi-threaded operation, to achieve the access search functions)
- 2010-11-07 15:45:58下载
- 积分:1
-
01-2
郭克强老师视屏教程,第一课第二部分,手机应用程序结构,适合初学者(Shiping Guo Keqiang teacher tutorials, the first lesson the second part, cell phone use program structure, suitable for beginners)
- 2009-09-10 09:40:39下载
- 积分:1
-
nhibernate
这是利用.net开发的,其中用到了orm方法(面向对象的方法),是NHibernate,该工具是从java开发的hibernate引申过来的.该程序对初学者非常不错!(use. Net development, which uses the Vector method (object-oriented approach), is NHibernate, the tool is the development of java exploit extended overnight. The program is very good for beginners!)
- 2005-03-22 23:16:36下载
- 积分:1
-
Http
自己平时从网上搜集的http协议解析文档(Their normally collected from the Internet http protocol analysis document)
- 2007-11-16 02:44:59下载
- 积分:1
-
GameMIDlet2
说明: 用java实现获取系统的mac地址,课堂上的资料进行复习。(get system mac address)
- 2010-04-23 11:44:57下载
- 积分:1
-
LatinKeyboardBaseView
should be replaced with ones to its base class Source Code for Andriod.
- 2014-01-12 18:18:16下载
- 积分:1
-
StuManagerSystem
java与MySQL数据库相连,jdbc(java,MySQL )
- 2016-05-28 14:19:02下载
- 积分:1
-
downLoadImageAndShow
说明: 通过http在互联网上下载一个图片,并显示(Through http on the Internet to download a picture, and display)
- 2009-08-09 19:02:22下载
- 积分:1