-
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
-
EJB
EJB3在JBoss7下的使用案例,建立EJB远程服务,通过本地和远程两种方式访问EJB服务(EJB3 in use cases JBoss7 under build EJB remote service, access to local and remote EJB services through two ways)
- 2016-06-07 10:52:27下载
- 积分:1
-
阿里巴巴Java开发手册(华山版)
说明: 阿里巴巴Java开发手册(华山版),java代码编写规范(Alibaba Java Development Manual (Huashan version), java code writing specification)
- 2020-04-29 15:27:03下载
- 积分:1
-
uubxoRPCTestDemo
RPC zookeeper +dubbo管理工具 +TestDemo测试代码(RPC zookeeper dubbo management tool TestDemo test code)
- 2018-09-16 05:33:29下载
- 积分:1
-
Struts2.Web.2.0.Projects
It is useful for web application and web works
- 2012-03-03 01:17:22下载
- 积分:1
-
HibernateResearch_V1.0
reseach ve hibernate
reseach ve hibernate
- 2011-06-03 16:42:56下载
- 积分:1
-
Jdk14Logger
Jdk14Logger implements Log, Serializable.
- 2014-02-18 14:22:09下载
- 积分:1
-
kotlin-docs -中文版
安卓app开发所用的kotlin编程语言的中文文档(Android app develops the Chinese document of kotlin programming language.)
- 2018-04-01 23:13:38下载
- 积分:1
-
utilities
Object proxy Type Source Code for Java Script.
- 2014-02-13 21:55:51下载
- 积分:1
-
test
java两种方法编写倒置的三角形,输出第一行7个,第二行5,第三行3个,第四行1个(two ways to write java inverted triangle, the first line of the output 7, the second line 5, the third line 3, the fourth line 1)
- 2010-10-20 11:05:56下载
- 积分:1