-
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
-
duanxin
短信群发功能的实现,还是不错的,有兴趣的可以看看.(To achieve bulk SMS function is good, interested can look at.)
- 2014-10-20 16:27:34下载
- 积分:1
-
Pemanggilan Database
How to call MS Database to TextBox
- 2020-06-21 00:40:02下载
- 积分:1
-
MessageObject
This is the root object from which all other objects in this package are derived. This class is never directly instantiated (and hence it is abstract).
- 2013-12-17 10:03:56下载
- 积分:1
-
Thinking_in_Java
学习JAVA从这本书学起,很好的书值得珍藏,希望能给大家一些帮助。(Thinking in Java)
- 2013-10-06 16:39:58下载
- 积分:1
-
javaservlet
图形界面示例源代码,该压缩文件为Java网络编程的一些例子(Graphical interface sample source code, the compressed file for the Java network programming some examples of)
- 2008-04-30 19:12:26下载
- 积分:1
-
MyEclipse
对于myeclipse容易过期的童鞋,可以使用该文本中的类可以永久免费使用myeclipse(For myeclipse easily outdated shoes, you can use the text in the class can be permanently free to use myeclipse)
- 2014-02-18 14:52:17下载
- 积分:1
-
AgentLite-Win
Android Studio 源代码工程,帮助大家查阅审核,编写时可以做参考(Android Studio Main Project)
- 2020-06-19 01:00:02下载
- 积分:1
-
Desktop
java AES 和 DES加密解密工具类(Java AES and DES Encryption and Decryption Tool Class)
- 2020-06-25 03:20:02下载
- 积分:1
-
chap06
说明: java手机编程的好例子,初学者不能放过。(a good example of java mobile programming, beginners can not let go.)
- 2011-02-27 17:22:39下载
- 积分:1