-
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
-
IO2Project
简单的IO适合初学者,来MLDN李兴华的初级教程(Simple IO for beginners)
- 2012-06-11 09:40:55下载
- 积分:1
-
使用Java实现数据库编程(北大青鸟java入门教程)
使用Java实现数据库编程(北大青鸟java入门教程)
- 2019-09-10下载
- 积分:1
-
sip的jar包
说明: SIP信令解析的jar包, 用于java语言的开发(There is a jar package of sip procotol, which is used in java development.)
- 2020-06-25 13:00:02下载
- 积分:1
-
java-qq
java写的qq聊天软件
带有客户端和服务端(qq chat software written in java client and server with)
- 2011-10-01 13:11:56下载
- 积分:1
-
MVC
应用MVC编写的Java应用程序实例,大家可以借鉴借鉴下(Application MVC prepared examples of Java applications, we can draw from the next)
- 2008-04-18 14:38:21下载
- 积分:1
-
Mailbox
在Windows环境下用java工具开发的具有发送邮件功能的邮箱,希望能给贵站帮助(Using java to send mail function with the development of e-mail)
- 2010-12-15 20:59:30下载
- 积分:1
-
jsf_example
一个jsf企业级程序示例实现一些基本功能()
- 2008-07-17 12:52:15下载
- 积分:1
-
JRegexTool
正则匹配工具,可匹配任意字符,支持匹配替换,支持对各种标示符的特别处理,界面化操作,简单易用(Regular matching tool to match any character, support matching replacement support special treatment for a variety of identifiers, interface operation, easy to use)
- 2014-02-17 14:56:07下载
- 积分:1
-
regress-294
typeof evaluates unary expressions.
- 2014-02-10 14:18:15下载
- 积分:1